© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago
nirine

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.

// normal non-tenant URL example
https://my-domain.com/dashboard


// normal tenant URL example
https://my-domain.com/{tenant}/dashboard


// custom tenant URL I want to have, same as first example
https://my-domain.com/dashboard
// normal non-tenant URL example
https://my-domain.com/dashboard


// normal tenant URL example
https://my-domain.com/{tenant}/dashboard


// custom tenant URL I want to have, same as first example
https://my-domain.com/dashboard


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
slugAttribute
as null does not work because I guess Filament uses the ID as a fallback.
$panel
  ->tenant(Team::class, slugAttribute: null) ❌
$panel
  ->tenant(Team::class, slugAttribute: null) ❌


The tenantRoutePrefix defines the prefix, not the actual slug attribute.
$panel
  ->tenantRoutePrefix(null) ❌
$panel
  ->tenantRoutePrefix(null) ❌


There's Jetstream that stores the
current_team_id
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Multi-tenancy without slug in the url
FilamentFFilament / ❓┊help
2y ago
Multi-Tenancy HasManyThrough Tenant Relationship
FilamentFFilament / ❓┊help
3y ago
Multi Tenancy Url Requirements
FilamentFFilament / ❓┊help
11mo ago
Multi tenancy menu URL
FilamentFFilament / ❓┊help
11mo ago