How to change route prefix ? #623
-
I am grouping routes by role
Note: prefix' => 'manager', The problem is: actually Route::crud are creating routes IGNORING the route group prefix .
I need How can I override route prefix in the crud controller ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @realtebo! The prefix is working, the What you want is the prefix for the Route::group([
'name' => 'manager.'
'prefix' => 'manager',
'namespace' => '\App\Http\Controllers\Manager',
... You can check the documentation over here; https://laravel.com/docs/10.x/routing#route-group-name-prefixes |
Beta Was this translation helpful? Give feedback.
Hi @realtebo!
The prefix is working, the
manager
prefix is being added to the route;manager/
password/password-change-initial-password
What you want is the prefix for the
name
, and for that you use thename
attribute on the route group;You can check the documentation over here; https://laravel.com/docs/10.x/routing#route-group-name-prefixes