diff --git a/src/Tour/Traits/CanConstructRoute.php b/src/Tour/Traits/CanConstructRoute.php index e290e76..cd20c8a 100644 --- a/src/Tour/Traits/CanConstructRoute.php +++ b/src/Tour/Traits/CanConstructRoute.php @@ -16,6 +16,10 @@ public function getRoute($class): array|false|int|null|string return $this->route; } + if (!Filament::auth()->user()) { + return '/'; + } + if (Filament::getCurrentPanel()->getTenantModel()) { $tenants = Filament::getCurrentPanel()->getTenantModel()::find(Filament::auth()->user()->getTenants(Filament::getCurrentPanel()));