trinityrank / draft-status
Draft status package.
Package info
github.com/trinity-rank/draft-status
Language:Vue
pkg:composer/trinityrank/draft-status
v1.2
2022-06-24 10:55 UTC
Requires
- php: ^8.0|^7.3
- laravel/nova: ^3.0
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.