omatech/laravel-statusable is a Laravel package.
It currently has 3 GitHub stars and 147 downloads on Packagist (latest version v0.0.7-beta).
Install it with composer require omatech/laravel-statusable.
Discover more Laravel packages by omatech
or browse all Laravel packages to compare alternatives.
Last updated
Tired of repeating the status control of your models again and again? Well, here it's already done.
You can install the package via composer:
composer require omatech/laravel-statusable
php artisan vendor:publish --tag=laravel-statusable-publish
Just use Statusable trait in your models to obtain the current status or the status history.
use Omatech\LaravelStatusable\App\Traits\Statusable;
To add an entry to history use the add method from StatusHistory model. Example:
StatusHistory::add('status-name', 'model-instance', 'releated-model', 'guard');
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.