trinityrank/draft-status

Draft status package.

v1.2 2022-06-24 10:55 UTC

This package is auto-updated.

Last update: 2024-05-24 15:07:03 UTC


README

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.