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)),
            ])


I'm getting error:
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
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
Was this page helpful?