'changing the default model binding key in resource route definition in laravel 9

is there any way to change the default model binding key just for some of the methods in resource route definition?

I try to use the parameters method like this

Route::resource('category', CategoryController::class)->names([
   'index'  => 'site.category.index',
   'show'   => 'site.category.show',
   'update' => 'site.category.update',
   'edit'   => 'site.category.edit',
   'create' => 'site.category.create',
   'store'  => 'site.category.store'
])->parameters([
   'category' => 'ca_slug'
]);

But when i use that method, all of actions model key goes into same.

enter image description here

While i want to change just model key of some of those like (show or edit)

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source