© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

getUrl Argument #1 $parameters must be of type array, string given.
FilamentFFilament / ❓┊help
2y ago
Section - must be of type string, array given
FilamentFFilament / ❓┊help
3y ago
Return value must be of type array, string returned error
FilamentFFilament / ❓┊help
2y ago
foreach() argument must be of type array|object, null given
FilamentFFilament / ❓┊help
2y ago