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]);
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].
Was this page helpful?