route('login')->with('error', 'Please login to access this page.'); } if (!Auth::user()->isSuperAdmin()) { abort(403, 'You do not have permission to access this page.'); } return $next($request); } }