
*
* @param string $path
* @return string
*/
public function hash($path)
{
return md5_file($path);
}
/**
* Write the contents of a file.
*
* @param string $path
* @param string $contents
* @param bool $lock
* @return int
*/
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
/**
* Prepend to a file.
*
* @param string $path
* @param string $data
* @return int
*/
public function prepend($path, $data)
{
if ($this->exists($path)) {
return $this->put($path, $data.$this->get($path));
}
return $this->put($path, $data);
}
/**
* Append to a file.
"file_put_contents(): Only 0 of 349 bytes written, possibly out of free disk space"
*
* @param string $path
* @return string
*/
public function hash($path)
{
return md5_file($path);
}
/**
* Write the contents of a file.
*
* @param string $path
* @param string $contents
* @param bool $lock
* @return int
*/
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
/**
* Prepend to a file.
*
* @param string $path
* @param string $data
* @return int
*/
public function prepend($path, $data)
{
if ($this->exists($path)) {
return $this->put($path, $data.$this->get($path));
}
return $this->put($path, $data);
}
/**
* Append to a file.
"/var/www/html/cx_dev/storage/framework/sessions/0QSxRkOJBCg3lTjhNQwpN82RrDu6Zm4JqAWz4mQp"
"a:5:{s:6:"_token";s:40:"l4URuFMv7LuzvsB9GxHnmyxSic6SNyH139am9j8m";s:15:"geoPlugin_array";a:3:{s:6:"status";s:4:"fail";s:7:"message";s:13:"private range";s:5:"query";s:10:"10.9.159.1";}s:14:"currentusersip";s:10:"10.9.159.1";s:9:"_previous";a:1:{s:3:"url";s:33:"http://18.223.216.31/competitions";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}"
2
/**
* {@inheritdoc}
*/
public function read($sessionId)
{
if ($this->files->exists($path = $this->path.'/'.$sessionId)) {
if (filemtime($path) >= Carbon::now()->subMinutes($this->minutes)->getTimestamp()) {
return $this->files->get($path, true);
}
}
return '';
}
/**
* {@inheritdoc}
*/
public function write($sessionId, $data)
{
$this->files->put($this->path.'/'.$sessionId, $data, true);
return true;
}
/**
* {@inheritdoc}
*/
public function destroy($sessionId)
{
$this->files->delete($this->path.'/'.$sessionId);
return true;
}
/**
* {@inheritdoc}
*/
public function gc($lifetime)
{
$files = Finder::create()
"/var/www/html/cx_dev/storage/framework/sessions/0QSxRkOJBCg3lTjhNQwpN82RrDu6Zm4JqAWz4mQp"
"a:5:{s:6:"_token";s:40:"l4URuFMv7LuzvsB9GxHnmyxSic6SNyH139am9j8m";s:15:"geoPlugin_array";a:3:{s:6:"status";s:4:"fail";s:7:"message";s:13:"private range";s:5:"query";s:10:"10.9.159.1";}s:14:"currentusersip";s:10:"10.9.159.1";s:9:"_previous";a:1:{s:3:"url";s:33:"http://18.223.216.31/competitions";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}"
true
*
* @param string $data
* @return string
*/
protected function prepareForUnserialize($data)
{
return $data;
}
/**
* Save the session data to storage.
*
* @return bool
*/
public function save()
{
$this->ageFlashData();
$this->handler->write($this->getId(), $this->prepareForStorage(
serialize($this->attributes)
));
$this->started = false;
}
/**
* Prepare the serialized session data for storage.
*
* @param string $data
* @return string
*/
protected function prepareForStorage($data)
{
return $data;
}
/**
* Age the flash data for the session.
*
* @return void
"0QSxRkOJBCg3lTjhNQwpN82RrDu6Zm4JqAWz4mQp"
"a:5:{s:6:"_token";s:40:"l4URuFMv7LuzvsB9GxHnmyxSic6SNyH139am9j8m";s:15:"geoPlugin_array";a:3:{s:6:"status";s:4:"fail";s:7:"message";s:13:"private range";s:5:"query";s:10:"10.9.159.1";}s:14:"currentusersip";s:10:"10.9.159.1";s:9:"_previous";a:1:{s:3:"url";s:33:"http://18.223.216.31/competitions";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}"
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
/**
* Perform any final actions for the request lifecycle.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
public function terminate($request, $response)
{
if ($this->sessionHandled && $this->sessionConfigured() && ! $this->usingCookieSessions()) {
$this->manager->driver()->save();
}
}
/**
* Start the session for the given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Contracts\Session\Session
*/
protected function startSession(Request $request)
{
return tap($this->getSession($request), function ($session) use ($request) {
$session->setRequestOnHandler($request);
$session->start();
});
}
/**
* Get the session implementation from the manager.
* @return void
*/
protected function terminateMiddleware($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge(
$this->gatherRouteMiddleware($request),
$this->middleware
);
foreach ($middlewares as $middleware) {
if (! is_string($middleware)) {
continue;
}
list($name) = $this->parseMiddleware($middleware);
$instance = $this->app->make($name);
if (method_exists($instance, 'terminate')) {
$instance->terminate($request, $response);
}
}
}
/**
* Gather the route middleware for the given request.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
protected function gatherRouteMiddleware($request)
{
if ($route = $request->route()) {
return $this->router->gatherRouteMiddleware($route);
}
return [];
}
/**
Request {
#json: null
#convertedFiles: null
#userResolver: Closure {
: "Illuminate\Auth\AuthServiceProvider"
: AuthServiceProvider { …}
: {
: {
: null
}
}
: {
: Application { …}
}
}
#routeResolver: Closure {
: "Illuminate\Routing\Router"
: Router { …}
: {
: Route { …}
}
}
+attributes: ParameterBag {}
+request: ParameterBag {#1}
+query: ParameterBag {#1}
+server: ServerBag {}
+files: FileBag {}
+cookies: ParameterBag {}
+headers: HeaderBag {}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/competitions"
#requestUri: "/competitions"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
: ""
: "html"
}
Response {}
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
protected function terminateMiddleware($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge(
$this->gatherRouteMiddleware($request),
$this->middleware
);
foreach ($middlewares as $middleware) {
if (! is_string($middleware)) {
Request {
#json: null
#convertedFiles: null
#userResolver: Closure {
: "Illuminate\Auth\AuthServiceProvider"
: AuthServiceProvider { …}
: {
: {
: null
}
}
: {
: Application { …}
}
}
#routeResolver: Closure {
: "Illuminate\Routing\Router"
: Router { …}
: {
: Route { …}
}
}
+attributes: ParameterBag {}
+request: ParameterBag {#1}
+query: ParameterBag {#1}
+server: ServerBag {}
+files: FileBag {}
+cookies: ParameterBag {}
+headers: HeaderBag {}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/competitions"
#requestUri: "/competitions"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
: ""
: "html"
}
Response {}
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Request {
#json: null
#convertedFiles: null
#userResolver: Closure {
: "Illuminate\Auth\AuthServiceProvider"
: AuthServiceProvider { …}
: {
: {
: null
}
}
: {
: Application { …}
}
}
#routeResolver: Closure {
: "Illuminate\Routing\Router"
: Router { …}
: {
: Route { …}
}
}
+attributes: ParameterBag {}
+request: ParameterBag {#1}
+query: ParameterBag {#1}
+server: ServerBag {}
+files: FileBag {}
+cookies: ParameterBag {}
+headers: HeaderBag {}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/competitions"
#requestUri: "/competitions"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
: ""
: "html"
}
Response {}
| Key | Value |
| XSRF-TOKEN | "************************************************************************************************************************************************************************************************************************************************************************************"
|
| laravel_session | "****************************************************************************************************************************************************************************************************************************************************************************************"
|
| Key | Value |
| REDIRECT_STATUS | "***"
|
| HTTP_ACCEPT | "***"
|
| HTTP_USER_AGENT | "*******************************************************************************************************"
|
| HTTP_COOKIE | "***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************"
|
| HTTP_ACCEPT_ENCODING | "***********************"
|
| HTTP_HOST | "*************"
|
| HTTP_VIA | "*********************************************"
|
| HTTP_X_FORWARDED_FOR | "**********"
|
| HTTP_CACHE_CONTROL | "**************"
|
| HTTP_CONNECTION | "**********"
|
| PATH | "************************************************************"
|
| SERVER_SIGNATURE | "**************************************************************************"
|
| SERVER_SOFTWARE | "**********************"
|
| SERVER_NAME | "*************"
|
| SERVER_ADDR | "*************"
|
| SERVER_PORT | "**"
|
| REMOTE_ADDR | "*************"
|
| DOCUMENT_ROOT | "***************************"
|
| REQUEST_SCHEME | "****"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "***************************"
|
| SERVER_ADMIN | "*******************"
|
| SCRIPT_FILENAME | "*************************************"
|
| REMOTE_PORT | "*****"
|
| REDIRECT_URL | "*************"
|
| GATEWAY_INTERFACE | "*******"
|
| SERVER_PROTOCOL | "********"
|
| REQUEST_METHOD | "***"
|
| QUERY_STRING | "" |
| REQUEST_URI | "*************"
|
| SCRIPT_NAME | "**********"
|
| PHP_SELF | "**********"
|
| REQUEST_TIME_FLOAT | "**************"
|
| REQUEST_TIME | "**********"
|
| APP_NAME | "*******"
|
| APP_ENV | "*****"
|
| APP_KEY | "***************************************************"
|
| APP_DEBUG | "****"
|
| APP_LOG_LEVEL | "*****"
|
| APP_URL | "****************"
|
| DB_CONNECTION | "*****"
|
| DB_HOST | "*********"
|
| DB_PORT | "****"
|
| DB_DATABASE | "*******"
|
| DB_USERNAME | "**********"
|
| DB_PASSWORD | "************"
|
| DB_CONNECTION2 | "*****"
|
| DB_HOST2 | "*********"
|
| DB_PORT2 | "****"
|
| DB_DATABASE2 | "***************"
|
| DB_USERNAME2 | "**********"
|
| DB_PASSWORD2 | "************"
|
| BROADCAST_DRIVER | "***"
|
| CACHE_DRIVER | "****"
|
| SESSION_DRIVER | "****"
|
| SESSION_LIFETIME | "**"
|
| QUEUE_DRIVER | "****"
|
| REDIS_HOST | "*********"
|
| REDIS_PASSWORD | "****"
|
| REDIS_PORT | "****"
|
| MAIL_DRIVER | "****"
|
| MAIL_HOST | "**************"
|
| MAIL_PORT | "***"
|
| FROM_EMAIL_ADDRESS | "***************************"
|
| MAIL_USERNAME | "***************************"
|
| MAIL_PASSWORD | "****************"
|
| MAIL_ENCRYPTION | "***"
|
| BOOKING_EMAIL_ADDRESS | "****************************"
|
| PUSHER_APP_ID | "" |
| PUSHER_APP_KEY | "" |
| PUSHER_APP_SECRET | "" |
| PUSHER_APP_CLUSTER | "***"
|
| ELASTICSEARCH_HOST | "*********"
|
| ELASTICSEARCH_PORT | "****"
|
| ELASTICSEARCH_SCHEME | "****"
|
| ELASTICSEARCH_USER | "" |
| ELASTICSEARCH_PASS | "" |
| SERVER_IP | "*************"
|
| END_POINT_API | "*************************"
|
| baseUrl | "*********************"
|
| S3_BASE_URL | "********************************"
|
| AWS_ACCESS_KEY_ID | "********************"
|
| AWS_SECRET_ACCESS_KEY | "****************************************"
|
| AWS_DEFAULT_REGION | "*********"
|
| AWS_BUCKET | "******"
|
| GOOGLEAPI_KEY | "***************************************"
|
| MAPQUEST_KEY | "********************************"
|
| MAPQUEST_SECRET | "****************"
|
| MAPQUEST_END_POINT | "************************************************"
|
| ZOHO_organization_id | "*********"
|
| ZOHO_redirect_uri | "***************************"
|
| ZOHO_client_id | "***********************************"
|
| ZOHO_client_secret | "******************************************"
|
| ZOHO_refresh_token | "**********************************************************************"
|
| ZOHO_api_base_url | "********************************"
|
| ZOHO_accesstokenapiurl | "****************************************"
|
| STRIPE_PUBLISHABLE_KEY | "******************************************"
|
| STRIPE_SECRET_KEY | "******************************************"
|
| LOCATION_API_KEY | "********************************"
|
| LOCATION_API_URL | "***********************"
|
| IPAPI_KEY | "********************************"
|
| COMPETITION_ID_TO_PASS | "*"
|
| WSC_API_KEY | "****************************************************************"
|
| WSC_ACCESS_KEY | "****************************************************************"
|
| WSC_JWT_TOKEN | "*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************"
|
| Musicians_Charge | "**"
|
| OPENAI_API_KEY | "********************************************************************************************************************************************************************"
|
| GROQAI_API_KEY | "********************************************************"
|
| GROQAI_MODEL | "*****************************************"
|
| AI_TIMEOUT | "**"
|
| AI_MAXTOKENS | "****"
|
| AI_MAX_INPUT_TOKENS | "*****"
|
| ZOHO_CLIENT_ID | "***********************************"
|
| ZOHO_CLIENT_SECRET | "******************************************"
|
| ZOHO_REFRESH_TOKEN | "**********************************************************************"
|
| ZOHO_ORGANIZATION_ID | "***********"
|
| GROQ_API_KEY | "********************************************************"
|
| GROQ_MODEL | "***********************"
|
| GROQ_ENDPOINT | "***********************************************"
|
| GROQ_TIMEOUT | "**"
|
| AI_DEBUG | "****"
|
| Key | Value |
| APP_NAME | "*******"
|
| APP_ENV | "*****"
|
| APP_KEY | "***************************************************"
|
| APP_DEBUG | "****"
|
| APP_LOG_LEVEL | "*****"
|
| APP_URL | "****************"
|
| DB_CONNECTION | "*****"
|
| DB_HOST | "*********"
|
| DB_PORT | "****"
|
| DB_DATABASE | "*******"
|
| DB_USERNAME | "**********"
|
| DB_PASSWORD | "************"
|
| DB_CONNECTION2 | "*****"
|
| DB_HOST2 | "*********"
|
| DB_PORT2 | "****"
|
| DB_DATABASE2 | "***************"
|
| DB_USERNAME2 | "**********"
|
| DB_PASSWORD2 | "************"
|
| BROADCAST_DRIVER | "***"
|
| CACHE_DRIVER | "****"
|
| SESSION_DRIVER | "****"
|
| SESSION_LIFETIME | "**"
|
| QUEUE_DRIVER | "****"
|
| REDIS_HOST | "*********"
|
| REDIS_PASSWORD | "****"
|
| REDIS_PORT | "****"
|
| MAIL_DRIVER | "****"
|
| MAIL_HOST | "**************"
|
| MAIL_PORT | "***"
|
| FROM_EMAIL_ADDRESS | "***************************"
|
| MAIL_USERNAME | "***************************"
|
| MAIL_PASSWORD | "****************"
|
| MAIL_ENCRYPTION | "***"
|
| BOOKING_EMAIL_ADDRESS | "****************************"
|
| PUSHER_APP_ID | "" |
| PUSHER_APP_KEY | "" |
| PUSHER_APP_SECRET | "" |
| PUSHER_APP_CLUSTER | "***"
|
| ELASTICSEARCH_HOST | "*********"
|
| ELASTICSEARCH_PORT | "****"
|
| ELASTICSEARCH_SCHEME | "****"
|
| ELASTICSEARCH_USER | "" |
| ELASTICSEARCH_PASS | "" |
| SERVER_IP | "*************"
|
| END_POINT_API | "*************************"
|
| baseUrl | "*********************"
|
| S3_BASE_URL | "********************************"
|
| AWS_ACCESS_KEY_ID | "********************"
|
| AWS_SECRET_ACCESS_KEY | "****************************************"
|
| AWS_DEFAULT_REGION | "*********"
|
| AWS_BUCKET | "******"
|
| GOOGLEAPI_KEY | "***************************************"
|
| MAPQUEST_KEY | "********************************"
|
| MAPQUEST_SECRET | "****************"
|
| MAPQUEST_END_POINT | "************************************************"
|
| ZOHO_organization_id | "*********"
|
| ZOHO_redirect_uri | "***************************"
|
| ZOHO_client_id | "***********************************"
|
| ZOHO_client_secret | "******************************************"
|
| ZOHO_refresh_token | "**********************************************************************"
|
| ZOHO_api_base_url | "********************************"
|
| ZOHO_accesstokenapiurl | "****************************************"
|
| STRIPE_PUBLISHABLE_KEY | "******************************************"
|
| STRIPE_SECRET_KEY | "******************************************"
|
| LOCATION_API_KEY | "********************************"
|
| LOCATION_API_URL | "***********************"
|
| IPAPI_KEY | "********************************"
|
| COMPETITION_ID_TO_PASS | "*"
|
| WSC_API_KEY | "****************************************************************"
|
| WSC_ACCESS_KEY | "****************************************************************"
|
| WSC_JWT_TOKEN | "*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************"
|
| Musicians_Charge | "**"
|
| OPENAI_API_KEY | "********************************************************************************************************************************************************************"
|
| GROQAI_API_KEY | "********************************************************"
|
| GROQAI_MODEL | "*****************************************"
|
| AI_TIMEOUT | "**"
|
| AI_MAXTOKENS | "****"
|
| AI_MAX_INPUT_TOKENS | "*****"
|
| ZOHO_CLIENT_ID | "***********************************"
|
| ZOHO_CLIENT_SECRET | "******************************************"
|
| ZOHO_REFRESH_TOKEN | "**********************************************************************"
|
| ZOHO_ORGANIZATION_ID | "***********"
|
| GROQ_API_KEY | "********************************************************"
|
| GROQ_MODEL | "***********************"
|
| GROQ_ENDPOINT | "***********************************************"
|
| GROQ_TIMEOUT | "**"
|
| AI_DEBUG | "****"
|