level === 1) { // Return the banned page instead of proceeding with the request return response()->view('banned'); } return $next($request); } }