Closed kirkbushell closed 10 months ago
The docs need to be updated to reflect the v3 version of using url - it should be passed a callback, then pass the record into the getUrl paramters.
Im doing this:
Action::make('activities')
->url(fn (ModelName $record): string => ModelNameResource::getUrl() . "/$record->id/activities")
Im doing this:
Action::make('activities') ->url(fn (ModelName $record): string => ModelNameResource::getUrl() . "/$record->id/activities")
Yup, exactly - as I said, it needs to be passed a callback, not just the record object, as per the documentation ;)
Now I got this. Was looking at the getPages()
registration and didn't get what was wrong. I updated the readme.
After following the steps, seeing this error when listing users:
Missing required parameter for [Route: filament.admin.resources.users.activities] [URI: admin/users/{record}/activities] [Missing parameter: record].