How to set the record url on a resource table

When using the Table builder, we can set the record url using getTableRecordUrlUsing() (https://filamentphp.com/docs/2.x/tables/getting-started#clickable-rows) How can I set this value in a resource? It goes to the edit page by default, but I'd like to change that.
Filament
Getting started - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
4 Replies
rubenvanerk
rubenvanerk15mo ago
I think I can make it working using the getTableRecordUrlUsing on the List page
toeknee
toeknee15mo ago
Where do you want it to go firstly?
rubenvanerk
rubenvanerk15mo ago
I was trying to set it in the Resource, but yeah List makes more sense in hindsight It now goes to a custom page with a different form than just editing
Dan Harrin
Dan Harrin15mo ago
ResourceName::getUrl('custompagename', ['record' => $record])
Want results from more Discord servers?
Add your server
More Posts