首先需要一个model文件 以Equipment为例
php artisan make:model Equipment
生成了Equipment这个model后再
php artisan admin:make EquipmentController --model=AppEquipment
这时候控制台会提示你要添加路由
AppAdminControllersEquipmentController created successfully. Add the following route to app/Admin/routes.php: $router->resource('equipment', EquipmentController::class);
按照提示添加路由后 再在后台创建一个菜单 此时就完成了