syntech/dashboard

一个用于创建自定义控制器及其相关资源的 Laravel 扩展包

1.2 2024-06-25 00:54 UTC

This package is auto-updated.

Last update: 2024-09-25 01:34:42 UTC


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