Closed declum closed 6 months ago
I have noticed that too
We've encountered this problem too. It is caused by how multi domain routes are registered in Laravel.
The same route name gets registered for each domain. Changing this to eg. only name the first domain's route, will cause people to be redirected from one domain to the first domain when a route is retrieved.
Is it possible to pass multiple domains into Route::domain()
?
Route::domain()
only accepts a string according to its definition:
@method \Illuminate\Routing\RouteRegistrar domain(string $value)
->name("{$panelId}.")
Can we prefix the domain name to the route name just like the panelId?
Because, without optimize, if I try access the panel domain-1 panel, it will redirect to domain-2's login page (bcz domain-2 is the last in the list)
Package
filament/filament
Package Version
v3.2
Laravel Version
v11
Livewire Version
No response
PHP Version
PHP 8.3
Problem description
If we configure the panel to use multiple domain,
php artisan optimize
failsExpected behavior
We should be allowed to use multiple domains.
Steps to reproduce
Reproduction repository
https://github.com/declum/example-repo
Relevant log output
No response