role_id; if ($user == $role) { return $next($request); } } return redirect()->route('login'); } }