Throw better Exceptions
This commit is contained in:
@@ -10,7 +10,7 @@ use Laravel\Session\Drivers\Sweeper;
|
||||
|
||||
if (Config::$items['application']['key'] === '')
|
||||
{
|
||||
throw new \Exception("An application key is required to use sessions.");
|
||||
throw new \LogicException("An application key is required to use sessions.");
|
||||
}
|
||||
|
||||
class Payload {
|
||||
@@ -296,4 +296,4 @@ class Payload {
|
||||
Cookie::put($cookie, $this->session['id'], $minutes, $path, $domain, $secure);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user