Skip to content

Commit

Permalink
Merge pull request #163 from bynicolas/master
Browse files Browse the repository at this point in the history
Add optional prefix to GUI routes
  • Loading branch information
jeremykenedy authored Nov 24, 2021
2 parents db411f1 + 68fb4bf commit 3699591
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/config/roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
'permissionsTable' => env('ROLES_PERMISSIONS_DATABASE_TABLE', 'permissions'),
'permissionsRoleTable' => env('ROLES_PERMISSION_ROLE_DATABASE_TABLE', 'permission_role'),
'permissionsUserTable' => env('ROLES_PERMISSION_USER_DATABASE_TABLE', 'permission_user'),

/*
|--------------------------------------------------------------------------
| GUI routes custom prefix
|--------------------------------------------------------------------------
|
| Here you can add custom prefix to web routes accessing the GUI CRUD
| interface.
|
*/

'GUIRoutesPrefix' => env('ROLES_GUI_ROUTES_PREFIX', ''),

/*
|--------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'middleware' => ['web'],
'as' => 'laravelroles::',
'namespace' => 'jeremykenedy\LaravelRoles\App\Http\Controllers',
'prefix' => config('roles.GUIRoutesPrefix'),
], function () {

// Dashboards and CRUD Routes
Expand Down

0 comments on commit 3699591

Please sign in to comment.