Anyone Here implemented Multi Tenancy with Multible Databases using filament?

I am using Stancl Library for Multitenancy and set it up correctly including auth. But when i try to login from the tenant route , from filament admin login page, it searches for the user in the main app table. Does anyone know how can i acheive this? The Login from the tenants subdomain is working fine from my custom auth routes. The issue is with filament only
4 Replies
CGM
CGM9mo ago
It took some effort, but using this demo repo as a guide I got everything working. https://github.com/savannabits/filament-tenancy-starter
GitHub
GitHub - savannabits/filament-tenancy-starter: Starter Code for int...
Starter Code for integrating Filament, Laravel Modules and TenancyForLaravel with a single postgres db and one schema per tenant - savannabits/filament-tenancy-starter
razor
razor2mo ago
How to fix for Laravel 11? Im having same problem
Azad Furkan ŞAKAR
Rômulo Ramos
YouTube
Filament e Tenancyforlaravel - Multi-tenancy Multi-database #filame...
Curtiu meu vídeo? Se quiser e puder, me pague um café com o Pix! 2b2f5d4b-312d-4f24-acb9-cb1c844c40ef Nesse vídeo veremos como configurar o pacote Tenancyforlaravel no Filament v3 . #Laravel #LaravelFilament #Filament #filamentphp #filamentv3 #PHP #DesenvolvimentoWeb #Programação #Brasil #desenvolvimentowebbrasil #stepbystepguide Você pode m...
razor
razor2mo ago
@Azad Furkan ŞAKAR doesn't work for me. I get undefined table I am using Laravel 11, Filament with tenancyforlaravel. I am using Postgres with seperate schema for each tenant. I can verify the schema and table exists in tenant but not in cenral app. So the issue is, filament is using the central db not tenant.
middleware([
InitializeTenancyBySubdomain::class,
PreventAccessFromCentralDomains::class,
'universal',
middleware([
InitializeTenancyBySubdomain::class,
PreventAccessFromCentralDomains::class,
'universal',
These are my middlewares. How to solve?

Did you find this page helpful?