syntech / dashboard
一个用于创建自定义控制器及其相关资源的 Laravel 扩展包
1.2
2024-06-25 00:54 UTC
Requires
- php: ^7.3|^8.0
- illuminate/support: ^8.0|^9.0|^10.0
- yajra/laravel-datatables-buttons: 9.0
- yajra/laravel-datatables-oracle: ^10.3.1
README
一个用于创建仪表板组件的 Laravel 扩展包。
安装
您可以通过 Composer 安装此包。
composer require syntech/dashboard:* Usage This package provides a custom Artisan command to create a new dashboard controller along with the associated resources (DataTable, Request, Resource, and View). Creating a New Dashboard Component Run the following Artisan command to create a new dashboard component: php artisan syntech:create {Namespace\\ControllerName} For example: php artisan syntech:create Dashboard\\Blog This will generate the following files: Controller: App\Http\Controllers\Dashboard\BlogController.php DataTable: App\DataTables\Dashboard\BlogDataTable.php Request: App\Http\Requests\Dashboard\BlogRequest.php Resource: App\Http\Resources\Dashboard\BlogResource.php View: resources/views/dashboard/blog.blade.php