Skip to content

Commit c4a34fd

Browse files
authored
check that request is set
1 parent 2e2db99 commit c4a34fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/Providers/SessionServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ protected function registerSessionManager()
2929
*/
3030
public function handleExitWithSession()
3131
{
32+
if (!$this->app->has('request')) {
33+
return;
34+
}
35+
3236
$request = request();
3337

3438
if (!$this->sessionConfigured() ||

0 commit comments

Comments
 (0)