© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
hosmar27

Pass array as parameter in Resource::getUrl

Is it possible? I need to pass the $record that has an Id and the $formulario has other Ids, they'ew connected by a pivot table since they have a many to many relationship. Just want to add that I'm a begginer in php . my code:
return CargoResource::getUrl('form', ['record' => $cargo->id, 'formulario' => $formulario]);
return CargoResource::getUrl('form', ['record' => $cargo->id, 'formulario' => $formulario]);
error returned: Missing required parameters for [Route: filament.admin.resources.cargos.form] [URI: admin/cargos/{record}/mount/{formulario}] [Missing parameters: "id":4, "id":9, "id":33, "id":34].
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() must be of type array
FilamentFFilament / ❓┊help
3y ago
Profile page with tenancy/parameter not set 'tenant' in getUrl()
FilamentFFilament / ❓┊help
14mo ago
Resource required route parameter.
FilamentFFilament / ❓┊help
3y ago
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
FilamentFFilament / ❓┊help
13mo ago