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