routes.php 373 B

1234567891011121314151617
  1. <?php
  2. use Illuminate\Routing\Router;
  3. use Illuminate\Support\Facades\Route;
  4. use Dcat\Admin\Admin;
  5. Admin::routes();
  6. Route::group([
  7. 'prefix' => config('admin.route.prefix'),
  8. 'namespace' => config('admin.route.namespace'),
  9. 'middleware' => config('admin.route.middleware'),
  10. ], function (Router $router) {
  11. $router->get('/', 'HomeController@index');
  12. });