F
Filament11mo ago
xfly

How to link to the edit page of the owner of record?

I have different processes which belong to a user and i want to click on a user in the tabel to jump directly to the edit page of the user. How can i achieve this?
6 Replies
LeandroFerreira
LeandroFerreira11mo ago
TextColumn has ->url('') You can also use a closure to inject $record
->url(fn (Model $record) => 'custom-url/' . $record->user_id)
->url(fn (Model $record) => 'custom-url/' . $record->user_id)
xfly
xflyOP11mo ago
can the url also be a route? like users.edit? also is there a list of all methods somewhere? i cant' find this in the docs. i got it sir. thank you.
LeandroFerreira
LeandroFerreira11mo ago
yes
xfly
xflyOP11mo ago
but where can i find all of this methods?
LeandroFerreira
LeandroFerreira11mo ago
there isn't in the docs I guess, but you can make a PR 😀
xfly
xflyOP11mo ago
would be cool if everything is in the docs haha thank you have a good day!

Did you find this page helpful?