F
Filament16mo ago
Stevee

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
SteveeOP16mo ago
protected function getTableRecordUrlUsing(): Closure { return fn (Model $record): string => ModelResource::getUrl('edit', $record); }
Stevee
SteveeOP16mo ago
ya it's should be the same
Hiz
Hiz16mo ago
because it appears that getTableRecordUrlUsing() is also deprecated in v3
Stevee
SteveeOP16mo ago
ehmm how to override in the widget ?
Stevee
SteveeOP16mo ago
found my mistake should update to ['record' => $record]
Want results from more Discord servers?
Add your server