lchange parameters in laravel route resource code example
Example: Override the route parameter names
Route::resource('user', 'AdminUserController', ['parameters' => [
'user' => 'admin_user'
]]);
Route::resource('user', 'AdminUserController', ['parameters' => [
'user' => 'admin_user'
]]);