henrywhitaker3/laravel-actions
最新稳定版本:v1.0.5
Composer 安装命令:
composer require henrywhitaker3/laravel-actions
包简介
Simple actions package for Laravel
README 文档
README
A simple Laravel actions package.
Installation
composer require henrywhitaker3/laravelactions
Usage
To create a new action, run:
php artisan make:action <name>
This will create a new action in App/Actions. You can then use the action in one of two ways:
$action = new SomeAction(); $action->run();
Or you can use the run helper function:
run(SomeAction::class);
You can pass arguments for the action's run method as the subsequent arguments for the helper method:
run(SomeAction::class, $arg); run(SomeAction::class, $arg1, $arg2);
License
MIT license. Please see the license file for more information.
统计信息
- 总下载量: 114.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-04