Override the route parameter names
Route::resource('user', 'AdminUserController', ['parameters' => [ 'user' => 'admin_user' ]]);
Here is what the above code is Doing:
1. We’re creating a resource route for the admin user.
2. We’re passing the parameter admin_user to the AdminUserController.
3. We’re passing the parameter admin_user to the AdminUserController.
Now, we can use the admin_user parameter in our controller.