How to visit Filament dashboard from the central domain after integrating stancl/tenancy

I have setup stancl/tenancy according to the Filament docs and it works well together.

However, I am now unable to visit Filament from the central domain, with error:

Hostname schoolserver.test does not include a subdomain.


I understand the error because I set up stancl/tenancy to to identify tenants by subdomain (which, like I said, works well).

It seems that including InitializeTenancyByDomain::class in Filament's middleware.base config entry makes the whole of Filament to be a tenant thing.

Please, what are my options for allowing Cetral domain admin to visit Filament while tenants can still visit Filament?
Was this page helpful?