changing the example middleware to not use timezones anymore, will be done with events
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user