V3 clickable row at widget

I got this error after upgrading to v3
Filament\Resources\Resource::getUrl(): Argument #2 ($parameters) must be of type array, App\Models\ given
Filament\Resources\Resource::getUrl(): Argument #2 ($parameters) must be of type array, App\Models\ given
why it's expecting array
7 Replies
Stevee
SteveeOP2y ago
protected function getTableRecordUrlUsing(): Closure { return fn (Model $record): string => ModelResource::getUrl('edit', $record); }
Stevee
SteveeOP2y ago
ya it's should be the same
Hiz
Hiz2y ago
because it appears that getTableRecordUrlUsing() is also deprecated in v3
Stevee
SteveeOP2y ago
ehmm how to override in the widget ?
Stevee
SteveeOP2y ago
found my mistake should update to ['record' => $record]

Did you find this page helpful?