芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Http/Middleware/Authenticate.php
expectsJson()) { return route('login'); } } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string[] ...$guards * @return mixed * * @throws \Illuminate\Auth\AuthenticationException */ public function handle($request, Closure $next, ...$guards) { if (user()) { $isActive = cache()->rememberForever('user_is_active_' . user()->id, function () { return User::where('id', user()->id)->where('status', 'active')->exists(); }); if (!$isActive) { auth()->logout(); session()->flush(); return redirect()->route('login'); } } $this->authenticate($request, $guards); return $next($request); } }