I'm trying to add default parameter to resource routing as per documentation:
My code looks like:
Route::resource('flats', FlatsController::class)->parameters([
'index' => 'test_parameter',
'create' => 'test_parameter1',
'update' => 'test_parameter2'
]);
But unfortunately all the time when listing the routing it gets like in the screenshot below:
Please help guide at what point do I make a mistake?
You have the following:
Since the only parameter is
{flat}
you can only rename this one as per docs:This results in: