F
Filament8mo ago
bflip

getUrl() must be of type array

Trying to have my relational resource not open in a modal. Using this:
->actions([
Tables\Actions\EditAction::make()
->url(fn(Model $record): string => VideoResource::getUrl('edit', $record)),
])
->actions([
Tables\Actions\EditAction::make()
->url(fn(Model $record): string => VideoResource::getUrl('edit', $record)),
])
I'm getting error:
Filament\Resources\Resource::getUrl(): Argument #2 ($parameters) must be of type array
Filament\Resources\Resource::getUrl(): Argument #2 ($parameters) must be of type array
Based on this: https://v2.filamentphp.com/tricks/relation-manager-edit-record-without-modal Any ideas?
Filament
Relation Manager edit record using Resource page instead of modal b...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Solution:
Ugh, nvm. Just had to wrap it in brackets
Jump to solution
1 Reply
Solution
bflip
bflip8mo ago
Ugh, nvm. Just had to wrap it in brackets