Skip to content

trinity-rank/draft-status

Repository files navigation

Draft Status

Latest Version on Packagist Total Downloads


How To Use

  1. Update database

    Make model columns nullable because draft status dremove field require validations

    Add 'status' column to model

    $table->integer('status');
  2. Add DraftComponents to your Nova resource in fields array

    DraftComponents::make(),
    DraftComponents::index(),
  3. Add DraftValidator trait to your Nova resources

    use DraftValidator;
  4. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors