Laravel version update
Laravel version update
This commit is contained in:
		| @@ -2,8 +2,8 @@ | ||||
|  | ||||
| namespace Illuminate\Session; | ||||
|  | ||||
| use Carbon\Carbon; | ||||
| use SessionHandlerInterface; | ||||
| use Illuminate\Support\Carbon; | ||||
| use Symfony\Component\Finder\Finder; | ||||
| use Illuminate\Filesystem\Filesystem; | ||||
|  | ||||
| @@ -68,7 +68,7 @@ class FileSessionHandler implements SessionHandlerInterface | ||||
|     { | ||||
|         if ($this->files->exists($path = $this->path.'/'.$sessionId)) { | ||||
|             if (filemtime($path) >= Carbon::now()->subMinutes($this->minutes)->getTimestamp()) { | ||||
|                 return $this->files->get($path); | ||||
|                 return $this->files->get($path, true); | ||||
|             } | ||||
|         } | ||||
|  | ||||
| @@ -81,6 +81,8 @@ class FileSessionHandler implements SessionHandlerInterface | ||||
|     public function write($sessionId, $data) | ||||
|     { | ||||
|         $this->files->put($this->path.'/'.$sessionId, $data, true); | ||||
|  | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @@ -89,6 +91,8 @@ class FileSessionHandler implements SessionHandlerInterface | ||||
|     public function destroy($sessionId) | ||||
|     { | ||||
|         $this->files->delete($this->path.'/'.$sessionId); | ||||
|  | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma