user(); if($user && $user->isBanned()) { auth()->logout(); return redirect()->back()->with('error', 'You are banned'); } return $next($request); } }