From b87104c22d15ce7254731746825d19456eb51722 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Fri, 20 May 2022 13:50:47 -0600 Subject: [PATCH] changing the example middleware to not use timezones anymore, will be done with events --- src/app/Http/Middleware/CheckCustomSessionData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Http/Middleware/CheckCustomSessionData.php b/src/app/Http/Middleware/CheckCustomSessionData.php index afbc6d4..8c72814 100644 --- a/src/app/Http/Middleware/CheckCustomSessionData.php +++ b/src/app/Http/Middleware/CheckCustomSessionData.php @@ -19,8 +19,8 @@ class CheckCustomSessionData */ public function handle(Request $request, Closure $next) { - if ((! session()->has('timezone_name') || empty(session('timezone_name'))) && $request->user()) { - session()->put('timezone_name', $request->user()->timezone_name); + if ((! session()->has('thing') || empty(session('thing'))) && $request->user()) { + session()->put('thing', $request->user()->thing); } return $next($request);