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