trinityrank / draft-status
Draft status package.
Installs: 118
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
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.