© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago
filamentphp-noob

Multi Tenancy - Fixed subdomain and dynamic tenant domain

Panels
Hey everyone,

I was wondering if it's possible to achieve the following using Filament's Multi tenancy capabilities.

I'd like to have a fixed subdomain, say "quote" and then the rest of the domain is dynamic (the tenant table has a domain column)

So it would essentially look like this: quote.tenant-domain.com

The below is how the
->tenant
->tenant
and
->tenantDomain
->tenantDomain
methods are used, however, the quote subdomain here
->tenantDomain('quote.{tenant:domain}');
->tenantDomain('quote.{tenant:domain}');
causes a redirect loop which I'm not sure how to resolve.

->tenant(Tenant::class, slugAttribute: 'domain')
->tenantDomain('quote.{tenant:domain}');
->tenant(Tenant::class, slugAttribute: 'domain')
->tenantDomain('quote.{tenant:domain}');


I can sort of achieve the fixed quote subdomain but only when editing the
vendor/filament/filament/routes/web.php
vendor/filament/filament/routes/web.php
file

from this:
$tenantDomain = $panel->getTenantDomain();
$tenantDomain = $panel->getTenantDomain();


to this
$tenantDomain = $panel->hasTenancy() ? 'quote.' . $panel->getTenantDomain() : $panel->getTenantDomain();
$tenantDomain = $panel->hasTenancy() ? 'quote.' . $panel->getTenantDomain() : $panel->getTenantDomain();
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 Subdomain Issue
FilamentFFilament / ❓┊help
5mo ago
Multi-tenancy by subdomain
FilamentFFilament / ❓┊help
3y ago
Multi-Tenancy HasManyThrough Tenant Relationship
FilamentFFilament / ❓┊help
3y ago
Multi Tenancy SubDomain 404 Not found
FilamentFFilament / ❓┊help
3mo ago