changing the example middleware to not use timezones anymore, will be done with events

This commit is contained in:
Brian 2022-05-20 13:50:47 -06:00
parent 5b8a3b3714
commit b87104c22d
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -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);