Hello Tuto,

I'm having the following error. When I'm using tenancy stuff and trying to use them together EditProfile is not possible because have a route problem. Thank you for your help, I think more people can have this same problem.
No description
No description
7 Replies
tuto1902
tuto1902•16mo ago
Well this is strange. I just tried a fresh install with the (almost) the exact settings you have and it worked fine. I couldn't reproduce the error. My panel config
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->tenant(model:Company::class, ownershipRelationship: 'company')
->tenantRoutePrefix('company')
->tenantRegistration(RegisterCompany::class)
->login()
->colors([
'primary' => Color::Violet,
])
// ......
}
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->tenant(model:Company::class, ownershipRelationship: 'company')
->tenantRoutePrefix('company')
->tenantRegistration(RegisterCompany::class)
->login()
->colors([
'primary' => Color::Violet,
])
// ......
}
No description
tuto1902
tuto1902•16mo ago
The only difference I can spot is that you are overriding the default Login page class in the ->login() method, so I don't know if you are doing something custom in there. Can you share the contents of Login::class? One other thing I could suggest is to run php artisan view:clear just to make sure its not a view cache thing.
joaopaulolndev
joaopaulolndevOP•16mo ago
You are not using the ->profile(EditProfile::class) in your example. When you put this one, and click to edit in the right menu you will receive the same error I found another guy with the some problem in oficial filament discord https://discord.com/channels/883083792112300104/1145428790831497326 Override login is not the problem, the problem is override profile to have a page to edit profile informations, if you are not using tenancy works fine, but with tenancy you will receive the same error
tuto1902
tuto1902•16mo ago
Got it, I'll try some more testing today and let you know what I can find
joaopaulolndev
joaopaulolndevOP•16mo ago
Sure, I spent almost 3 hours today looking for some solution. By the way, not find something that can help.
tuto1902
tuto1902•16mo ago
I spent some more time with this but could not find a solution 😭 Have you had any luck?
joaopaulolndev
joaopaulolndevOP•16mo ago
Not yet, I tried to see on core, the problem is, when we are using de index layout on our EditProfile custom we will receiving this error I man, the $layout = ……. Index
Want results from more Discord servers?
Add your server