ritaorion/laravel-actions-enums
最新稳定版本:0.2.7
Composer 安装命令:
composer require ritaorion/laravel-actions-enums
包简介
This package provides Artisan CLI Support to create Scaffolding for Actions and Enum classes in Laravel
README 文档
README
This package provides Artisan CLI Support to create Scaffolding for Actions and Enum classes in Laravel
Installation
composer require ritaorion/laravel-actions-enums
Basic Usage
php artisan make:action Chartsphp artisan make:enum Role
Arguments
php artisan make:action Admin/Blogs --model=Blog- Scaffolds action class with restful resources methods and uses the appropriate model class. If the model does not exist, an error will be thrown.
php artisan make:enum Admin/Blogs/Status --case=Active --case=Inactive --case=Published- Creates an enum class and scaffolds cases that are passed in as arguments.
php artisan make:enum Responses --case="it is possible"- Passing double quotes case values will convert cases to PascalCase.
Sample Action Usage in Controller
(new CreateBlog)->create($input);
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-25