awesome-nova/tool-actions
最新稳定版本:v0.2.0
Composer 安装命令:
composer require awesome-nova/tool-actions
包简介
README 文档
README
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require awesome-nova/tool-actions
Usage
class AddCommentAction extends ToolAction { public function name() { return 'Add New Comment'; } public function label() { return 'Add comment'; } public function handle(ActionFields $fields) { Comment::create([ 'comment' => $fields->get('comment') ]); } public function fields() { return [ Text::make("Comment")->rules('required') ]; } }
统计信息
- 总下载量: 639
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-17