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