FilamentF
Filament3y ago
vas

Stancl/Tenancy Filament 3

hi i have setup Stancl/Tenancy and its working fine , but i cant get filament to work on tenants subdomain

it does load part of the page in the bg but then i get this error
Solution
public function boot(): void
{
    // ...

    Livewire::setUpdateRoute(function ($handle) {
        return Route::post('/livewire/update', $handle)
            ->middleware(
                'web',
                'universal',
                InitializeTenancyByDomain::class, // or whatever tenancy middleware you use
            );
    });
}
Was this page helpful?