getTableRecordActionUsing() not working for me any idea??

i follow the docs and this message and keep getting the url to ".../edit/x" https://discord.com/channels/883083792112300104/883085291722788964/1011586436270673920
3 Replies
Hurruwa
HurruwaOP2y ago
Fixed:
protected function getTableRecordUrlUsing(): ?Closure
{
return fn (Model $record): string => route('filament.resources.sources.view', ['record' => $record]);
}
protected function getTableRecordUrlUsing(): ?Closure
{
return fn (Model $record): string => route('filament.resources.sources.view', ['record' => $record]);
}
Dan Harrin
Dan Harrin2y ago
should be fn (Model $record) => SourceResource::getUrl('view', ['record' => $record])
Hurruwa
HurruwaOP2y ago
Thanks Dan, you are the best
Want results from more Discord servers?
Add your server