-
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;
You can install the package via composer:
composer require trinityrank/draft-statusPlease see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.