(string) ($r['role_name'] ?? ''), $roles))); } public function switchRole(string $role): string { Session::put('active_role', $role); return $this->dashboardService->bestDashboardRouteFor([$role]); } }