Multi tenancy Dashboard redirect loop
I'm trying to work with multi tenancy in my application.
The tenant model is called
Account
, and I set it on my PanelProvider
like so:
(There is no ->path(...)
, the whole application is filament.)
Works perfectly with the slugs like example.test/tenant
.
Subdomains are cool, so I wanted to make tenant.example.test
instead, so I tryed:
It didn't work, I got "The page isn’t redirecting properly" error, I tried to figure out why.
On default I run local projects with laragon (working on Windows 11 btw), but I made it work previously for another project, but I couldn't make it work this time.
After some time I gave up with Laragon and tried to run it with php artisan serve --host="example.test"
.
Same problem, but I found out that only the Dashboard throws this error, so I opened up the vendor folder and tried to catch the error.
I ended up with the RedirectToTenantController
, and this controller redirects every time to the same url.
I only had a custom widget on the dashboard, I commented it, also commented ->discoverWidgets()
.
I even tried to make a brand new project with only these details, but same happened.
What am I missing, or what could be the problem, and how can I solve it?Solution:Jump to solution
GitHub
Release v3.2.57 · filamentphp/filament
What's Changed
adding hook classes for sub navigation by @atmonshi in #11949
Add missing de translations for relation edit modal by @philippbuerger in #11954
Update 03-creating-records.md by @...
1 Reply
Solution
GitHub
Release v3.2.57 · filamentphp/filament
What's Changed
adding hook classes for sub navigation by @atmonshi in #11949
Add missing de translations for relation edit modal by @philippbuerger in #11954
Update 03-creating-records.md by @...