kace/eloquent-draftable

Add draftable functionality to your eloquent models.

Maintainers

Package info

github.com/kacesolutions/eloquent-draftable

Issues

pkg:composer/kace/eloquent-draftable

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

v0.0.1 2020-10-12 03:20 UTC

This package is auto-updated.

Last update: 2026-03-11 15:33:08 UTC


README

Introduction

Eloquent Draftable provides additional draftable features for your model elements. This package gives you the feature to publish a model or to publish on a scheduled basis or to publish on a certain date.

Installation

You may install Eloquent Draftable via Composer:

composer require kace/eloquent-draftable

Next, add the nullable timestamp column publisheh_at to the model table database:

$table->timestamp('published_at')->nullable();

Finally, you should run your database migrations. Eloquent Draftable will add a published_at column in which to publication date:

php artisan migrate

License

This package is licensed under the MIT license.