block === "yes") { return redirect()->route('blocked'); } if (env('MAINTENANCE_MODE') == 'true' && (Auth::check() && Auth::user()->role != 'admin')) { return redirect(url('')); } return $next($request); } }