role == 'admin') { return $next($request); } return redirect('/'); } }