Check for CLI before starting session.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
parent
d43157b61f
commit
76eef23f54
|
@ -108,7 +108,7 @@
|
|||
|
|
||||
*/
|
||||
|
||||
if (Config::get('session.driver') !== '')
|
||||
if ( ! Request::cli() and Config::get('session.driver') !== '')
|
||||
{
|
||||
Session::load();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue