Edit a record without providing the record parameter
Hi Filament Community,
I am just getting a hang of FilamentPHP and I am working on a scenario where I want to let user edit his relationship related information inside the user panel.
I have a UserResource created it has a Page named EditEducation which extends EditPage and route name is /me/education
Doing so throws following exception
8 Replies
You would need to edit the mount function on the page to remove the required $id and instead load the record from the auth()->user(
If I override the mount without parameter and set the record from auth()->user() it is of no use because the mount function in the parent class requires a parameter
Correct, but you define it in the override
This is what happens
Ok ok try:
Not working either, the idea is this I have one resource but I want each relationship to be on a dedicated page
What other possible routes do we have at the moment
Just create a custom page if need be?
How have you defined the route?
mount should be void