Missing required parameter for View route

I have just found out the wonder of Repeaters, and after adding one to a form, the first time I submitted the form I got an error

Missing required parameter for [Route: filament.admin.resources.customers.view] [URI: admin/customers/{record}] [Missing parameter: record]

I haven't changed anything in terms of routing (that I know of!). In my CustomerResource::getPages() method, I have

            'view' => Pages\ViewCustomer::route('/{record}'),


which is what I had before this broke.

I tried to remove the Repeater section, and I still get this error. What is strange though, is that when I complete the form - both with and without the repeater, the customer is created. But if I fill out the repeater, the Repeater element is NOT created.
Solution
Did ou change something in the CreateCustomer class?

Could you try this? This should redirect to the index page after creating a record... just to try it
protected function getRedirectUrl(): string
{
    return $this->getResource()::getUrl('index');
}
Was this page helpful?