Pair it Series, a tool for learning Hindi through English language.
- *
- * @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(/home/theivdhg/sunanda.net/storage/framework/sessions/Xlf5mfQirv5n6fIzukMFjuZhIZugUXlE8bHxb8NX): failed to open stream: Disk quota exceeded"
* * @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.
"/home/theivdhg/sunanda.net/storage/framework/sessions/Xlf5mfQirv5n6fIzukMFjuZhIZugUXlE8bHxb8NX"
"a:3:{s:6:"_token";s:40:"BLV3q0In8ixgsUH2w8lI2DVGx9xMg6c4B93mOk55";s:9:"_previous";a:1:{s:3:"url";s:40:"https://sunanda.net/viewdetails/chanakya";}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()
"/home/theivdhg/sunanda.net/storage/framework/sessions/Xlf5mfQirv5n6fIzukMFjuZhIZugUXlE8bHxb8NX"
"a:3:{s:6:"_token";s:40:"BLV3q0In8ixgsUH2w8lI2DVGx9xMg6c4B93mOk55";s:9:"_previous";a:1:{s:3:"url";s:40:"https://sunanda.net/viewdetails/chanakya";}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
"Xlf5mfQirv5n6fIzukMFjuZhIZugUXlE8bHxb8NX"
"a:3:{s:6:"_token";s:40:"BLV3q0In8ixgsUH2w8lI2DVGx9xMg6c4B93mOk55";s:9:"_previous";a:1:{s:3:"url";s:40:"https://sunanda.net/viewdetails/chanakya";}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 []; } /**
0 of 0Request {▶ #json: null #convertedFiles: [] #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:8 [▶ 0 => "text/html" 1 => "application/xhtml+xml" 2 => "image/avif" 3 => "image/webp" 4 => "image/apng" 5 => "application/xml" 6 => "*/*" 7 => "application/signed-exchange" ] #pathInfo: "/viewdetails/chanakya" #requestUri: "/viewdetails/chanakya" #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)) {
0 of 0Request {▶ #json: null #convertedFiles: [] #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:8 [▶ 0 => "text/html" 1 => "application/xhtml+xml" 2 => "image/avif" 3 => "image/webp" 4 => "image/apng" 5 => "application/xml" 6 => "*/*" 7 => "application/signed-exchange" ] #pathInfo: "/viewdetails/chanakya" #requestUri: "/viewdetails/chanakya" #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);
0 of 0Request {▶ #json: null #convertedFiles: [] #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:8 [▶ 0 => "text/html" 1 => "application/xhtml+xml" 2 => "image/avif" 3 => "image/webp" 4 => "image/apng" 5 => "application/xml" 6 => "*/*" 7 => "application/signed-exchange" ] #pathInfo: "/viewdetails/chanakya" #requestUri: "/viewdetails/chanakya" #baseUrl: "" #basePath: null #method: "GET" #format: null #session: Store {} #locale: null #defaultLocale: "en" -isHostValid: true -isForwardedValid: true : "" : "html" }
Response {}
Key | Value |
PATH | "/usr/local/bin:/bin:/usr/bin"
|
HTTP_ACCEPT | "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
HTTP_ACCEPT_ENCODING | "gzip, br"
|
HTTP_HOST | "sunanda.net"
|
HTTP_PRAGMA | "no-cache"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_CACHE_CONTROL | "no-cache"
|
HTTP_X_FORWARDED_FOR | "216.73.216.253,108.162.216.15"
|
HTTP_CF_VISITOR | "{"scheme":"https"}"
|
HTTP_SEC_FETCH_MODE | "navigate"
|
HTTP_SEC_FETCH_USER | "?1"
|
HTTP_PRIORITY | "u=0, i"
|
HTTP_CF_RAY | "94edef6afc7ceb5a-ORD"
|
HTTP_SEC_FETCH_DEST | "document"
|
HTTP_SEC_CH_UA | ""Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99""
|
HTTP_SEC_CH_UA_MOBILE | "?0"
|
HTTP_SEC_CH_UA_PLATFORM | ""Windows""
|
HTTP_UPGRADE_INSECURE_REQUESTS | "1"
|
HTTP_SEC_FETCH_SITE | "none"
|
HTTP_CDN_LOOP | "cloudflare; loops=1"
|
HTTP_CF_CONNECTING_IP | "216.73.216.253"
|
HTTP_CF_IPCOUNTRY | "US"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_X_HTTPS | "on"
|
DOCUMENT_ROOT | "/home/theivdhg/sunanda.net"
|
REMOTE_ADDR | "216.73.216.253"
|
REMOTE_PORT | "52968"
|
SERVER_ADDR | "198.54.126.145"
|
SERVER_NAME | "sunanda.net"
|
SERVER_ADMIN | "webmaster@sunanda.theindologist.org"
|
SERVER_PORT | "443"
|
REQUEST_SCHEME | "https"
|
REQUEST_URI | "/viewdetails/chanakya"
|
REDIRECT_URL | "/public/viewdetails/chanakya"
|
REDIRECT_REQUEST_METHOD | "GET"
|
PROXY_REMOTE_ADDR | "198.54.126.145"
|
HTTPS | "on"
|
REDIRECT_STATUS | "200"
|
SCRIPT_FILENAME | "/home/theivdhg/sunanda.net/public/index.php"
|
QUERY_STRING | "" |
SCRIPT_URI | "https://sunanda.net/viewdetails/chanakya"
|
SCRIPT_URL | "/viewdetails/chanakya"
|
SCRIPT_NAME | "/public/index.php"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
SERVER_SOFTWARE | "LiteSpeed"
|
REQUEST_METHOD | "GET"
|
X-LSCACHE | "on"
|
PHP_SELF | "/public/index.php"
|
REQUEST_TIME_FLOAT | 1749779406.8439
|
REQUEST_TIME | 1749779406
|
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:EfRsheE7ivKF6pSz4bvmLKDUpj1EComlKh21IAn+49M="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "http://localhost"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "theivdhg_sunandaverma"
|
DB_USERNAME | "theivdhg_sunandaverma"
|
DB_PASSWORD | "xigmapro@123"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "null"
|
MAIL_PORT | "26"
|
MAIL_USERNAME | "admin@laraveldevelopers.website"
|
MAIL_PASSWORD | "xigmapro@123"
|
MAIL_ENCRYPTION | "null"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
Key | Value |
PATH | "/usr/local/bin:/bin:/usr/bin"
|
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:EfRsheE7ivKF6pSz4bvmLKDUpj1EComlKh21IAn+49M="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "http://localhost"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "127.0.0.1"
|
DB_PORT | "3306"
|
DB_DATABASE | "theivdhg_sunandaverma"
|
DB_USERNAME | "theivdhg_sunandaverma"
|
DB_PASSWORD | "xigmapro@123"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "null"
|
MAIL_PORT | "26"
|
MAIL_USERNAME | "admin@laraveldevelopers.website"
|
MAIL_PASSWORD | "xigmapro@123"
|
MAIL_ENCRYPTION | "null"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|