F
Filamentβ€’9mo 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
LeandroFerreiraβ€’9mo 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
xflyOPβ€’9mo 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
LeandroFerreiraβ€’9mo ago
yes
xfly
xflyOPβ€’9mo ago
but where can i find all of this methods?
LeandroFerreira
LeandroFerreiraβ€’9mo ago
there isn't in the docs I guess, but you can make a PR πŸ˜€
xfly
xflyOPβ€’9mo ago
would be cool if everything is in the docs haha thank you have a good day!
Want results from more Discord servers?
Add your server