Commit e89fd04a authored by Taylor Otwell's avatar Taylor Otwell

Added check for application key in session class.

parent 9fd503f5
......@@ -4,6 +4,11 @@ use Closure;
use Laravel\Session\Drivers\Driver;
use Laravel\Session\Drivers\Sweeper;
if (Config::$items['application']['key'] === '')
{
throw new \Exception("An application key is required to use sessions.");
}
class Session {
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment