diff --git a/app/Http/Middleware/DisableCookies.php b/app/Http/Middleware/DisableCookies.php index a5f593f..6ba9d11 100644 --- a/app/Http/Middleware/DisableCookies.php +++ b/app/Http/Middleware/DisableCookies.php @@ -17,7 +17,7 @@ class DisableCookies return $next($request); } - Cookie::queue(Cookie::forget(strtolower(config('app.name')).'_session')); + Cookie::queue(Cookie::forget(str_replace(' ', '_', strtolower(config('app.name')).'_session'))); Cookie::queue(Cookie::forget('XSRF-TOKEN')); config(['session.driver' => 'array']);