We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8109ca0 + 77ded60 commit 65eddc6Copy full SHA for 65eddc6
src/routes/backpack/custom.php
@@ -8,10 +8,10 @@
8
9
Route::group([
10
'prefix' => config('backpack.base.route_prefix', 'admin'),
11
- 'middleware' => [
12
- config('backpack.base.web_middleware', 'web'),
13
- config('backpack.base.middleware_key', 'admin'),
14
- ],
+ 'middleware' => array_merge(
+ (array) config('backpack.base.web_middleware', 'web'),
+ (array) config('backpack.base.middleware_key', 'admin')
+ ),
15
'namespace' => 'App\Http\Controllers\Admin',
16
], function () { // custom admin routes
17
}); // this should be the absolute last line of this file
0 commit comments