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•10mo 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•10mo 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
joaopaulolndev•10mo 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•9mo ago
Got it, I'll try some more testing today and let you know what I can find
joaopaulolndev
joaopaulolndev•9mo ago
Sure, I spent almost 3 hours today looking for some solution. By the way, not find something that can help.
tuto1902
tuto1902•9mo ago
I spent some more time with this but could not find a solution 😭 Have you had any luck?
joaopaulolndev
joaopaulolndev•9mo 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
More Posts
How to use custom Admin UI with FilamentHello guys. II've been with Laravel for a year or so and I love it so far. So is with Livewire whichow to set a value of an input field using values in a repeaterI have this input fields inside a repeater, product name, price and quantity, and I have an input fiIlluminate/Support not loaded while trying to install nunomaduro/larastanHello there friends. As part of following the Pet Clinic project and learn the filament admin insidWorking on a Laravel Filament project using remote Shared HostingHello guys. As part of my "training punishment" I decided to try to install a fresh Laravel + Filamis there a way to mutate data on createOptionForm in Select input.i want to attach the creator_id before saving the form instead of having the a readonly field. ` Fis there a way to make tabs filter optional according to rolesi have a teacher role and admin role, i want a tab filter only when i login as an admin, if i login Render data from two resourcesIs there a way to render data in a form from two different resources (tables or models) without a reNeed Help wrapping my mind around Filament implementationHello! I recently stumbled across this channel and love the content. Thank you for providing such grhow to share resources on both panelsi have 2 panel, teacher and stundet, i want to create a resource that accessible for both roles, thnCustom setting page with filamentphpI'm attempting to set up the edit page as the primary view for a filamentphp resource, specifically