Multi-Tenancy: remove the tenant URL slug?
Hi, I am using Filament tenancy, and I was wondering if it was possible to remove the current tenant's slug from the URL and keep an URL like there's no tenant.
There's already the tenant menu item to help the user identify the current tenant, and I thought I could store the current tenant in session or elsewhere and tweak the way filament retrieves it to have the URL without the slug.
Setting the
slugAttribute as null does not work because I guess Filament uses the ID as a fallback.
The tenantRoutePrefix defines the prefix, not the actual slug attribute.
There's Jetstream that stores the current_team_id in the database, if I remember it right. But I don't want an extra column just for that. I'm looking at how Filament generates the URL, to better understand what's going on under the hood. But if you have any leads, I'm all ears.
Thanks.Laravel Jetstream | Laravel Jetstream
Beautifully designed application scaffolding for Laravel
0 Replies