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