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