is_admin) { return $next($request); } return redirect('/')->with('error', 'You do not have admin access.'); } }