Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -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;
}
/**