You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
754 B
21 lines
754 B
2 years ago
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Route;
|
||
|
|
||
|
// --------------------------
|
||
|
// Custom Backpack Routes
|
||
|
// --------------------------
|
||
|
// This route file is loaded automatically by Backpack\Base.
|
||
|
// Routes you generate using Backpack\Generators will be placed here.
|
||
|
|
||
|
Route::group([
|
||
|
'prefix' => config('backpack.base.route_prefix', 'admin'),
|
||
|
'middleware' => array_merge(
|
||
|
(array) config('backpack.base.web_middleware', 'web'),
|
||
|
(array) config('backpack.base.middleware_key', 'admin')
|
||
|
),
|
||
|
'namespace' => 'App\Http\Controllers\Admin',
|
||
|
], function () { // custom admin routes
|
||
|
Route::crud('user', 'UserCrudController');
|
||
|
Route::crud('menu', 'MenuCrudController');
|
||
|
}); // this should be the absolute last line of this file
|