Added check for application key in session class.
This commit is contained in:
parent
9fd503f5b6
commit
e89fd04ab7
|
@ -4,6 +4,11 @@
|
||||||
use Laravel\Session\Drivers\Driver;
|
use Laravel\Session\Drivers\Driver;
|
||||||
use Laravel\Session\Drivers\Sweeper;
|
use Laravel\Session\Drivers\Sweeper;
|
||||||
|
|
||||||
|
if (Config::$items['application']['key'] === '')
|
||||||
|
{
|
||||||
|
throw new \Exception("An application key is required to use sessions.");
|
||||||
|
}
|
||||||
|
|
||||||
class Session {
|
class Session {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue