FilamentF
Filamentβ€’14mo ago
loaumax

🌐 How to Set Up Dynamic Subdomains for Filament Panels?

Hi all! πŸ‘‹

I'm trying to set up dynamic subdomains in Filament, like this:

  • store1.site.test ➑️ loads user panel for store1

  • store2.site.test ➑️ loads user panel for store2


I want Filament to automatically detect the subdomain and load the correct panel without defining routes manually in

routes/web.php.

So far, I've configured:

1. UserPanelProvider with ->domain('*.site.test')
2. Middleware to identify the store by the subdomain

But I keep getting redirection loops or timeouts. πŸ˜“

Any advice or examples would be greatly appreciated! πŸ™ Thanks!
Was this page helpful?