Missing required parameter for [Route: filament.admin.resources.insurers.view] [URI: admin/insurers/
Hello everyone,
I need your help to fix an issue. In my InsurerResource, I want to customize the parameter to uuid, but this doesn't work as expected. Below is the code I'm working with:
4 Replies
You should set the ID on the model not the resource.
No, I’m using IDs but I have a uuid column in the table, so I want to pass the uuid in the parameter instead of the ID. Filament’s documentation says that with the getRecordRouteKeyName method, this is possible, but I’m still getting the error.
where have you seen that in the documentation?
So using this in the resource file
protected static ?string $recordRouteKeyName = 'envelope_id';
for example would change how the edit/view for what is in the url for editting.
But to allow the editting you will need to set the record url manually I think, I can't see how to change the id inserted into the edit/view action