Profile view and profile edit
How do I make the current user profile link go to the current user's profile page and add a different link for editing the current user's profile?
8 Replies
In your filament service provider, please add
->profile()
->profile()
is already there, but it goes to a page for editing the profile. It works like Jetstream or Breeze. That's not what I want. I want the "profile" link to go to a view profile page where I will have a link to go to an edit profile page.Try to custom page
->profile(page: CustomPageViewProfile::class)
Tried that, but now I get this error:
Route [filament.admin.auth.profile] not defined.
Apparently, the route is disappearing when I do thathumm.. maybe CustomPage not extended
\Filament\Pages\Auth\EditProfile::class
u can try it:
https://medium.com/@laravelprotips/personalizing-the-filament-profile-page-expanding-the-design-and-integrating-multiple-forms-62db7ca68343Medium
Personalizing the Filament Profile Page: Expanding the Design and I...
Filament 3 offers intuitive authentication features, just like the Profile page. However, its design closely resembles the…
Thanks. I'll try that some other time. I've already spent a lot of time on a feature I'm not sure people will be using often
You can read more here https://filamentphp.com/docs/3.x/panels/navigation#customizing-the-profile-link
You can do something like:
Use
->profile()
to go to current profile page and follow this to link to "edit" page https://filamentphp.com/docs/3.x/panels/navigation#customizing-the-user-menuThis is what I've done to make a third party profile editing plugin work. When I tried it with my own page, it complained that the route was missing. I'll have a look later
Sounds like a plan. Will try later. Thank you