标签:laravel 后台 bsp class wing model tco highlight 模块
首先需要一个model文件 以Equipment为例
php artisan make:model Equipment
生成了Equipment这个model后再
php artisan admin:make EquipmentController --model=App\Equipment
这时候控制台会提示你要添加路由
App\Admin\Controllers\EquipmentController created successfully. Add the following route to app/Admin/routes.php: $router->resource(‘equipment‘, EquipmentController::class);
按照提示添加路由后 再在后台创建一个菜单 此时就完成了
标签:laravel 后台 bsp class wing model tco highlight 模块
原文地址:https://www.cnblogs.com/zwsblogs/p/12658782.html