trinityrank/draft-status
Composer 安装命令:
composer require trinityrank/draft-status
包简介
Draft status package.
README 文档
README
How To Use
-
Update database
Make model columns nullable because draft status dremove field require validations
Add 'status' column to model
$table->integer('status');
-
Add DraftComponents to your Nova resource in fields array
DraftComponents::make(), DraftComponents::index(),
-
Add DraftValidator trait to your Nova resources
use DraftValidator; -
Update database "status" field to "published"
UPDATE [table_name] SET status = 1 WHERE 1;
Installation
You can install the package via composer:
composer require trinityrank/draft-status
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 126
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-22