check() && !$request->bearerToken() && config('auth.defaults.guard') !== 'reverse-proxy-guard') { Auth::guard($guard)->user()->last_seen_at = Carbon::now()->format('Y-m-d H:i:s'); Auth::guard($guard)->user()->save(); break; } } return $next($request); } }