Download the PHP package nowendwell/laravel-archivable without Composer
On this page you can find all versions of the php package nowendwell/laravel-archivable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nowendwell/laravel-archivable
More information about nowendwell/laravel-archivable
Files in nowendwell/laravel-archivable
Package laravel-archivable
Short Description A trait to make an Eloquent model archivable
License MIT
Homepage https://github.com/nowendwell/laravel-archivable
Informations about the package laravel-archivable
A trait to make Eloquent models archivable
This package contains a trait to make Eloquent models archivable. This works in a similar way to the SoftDelete trait that Laravel ships with.
Once you have applied to the trait to a model you can do the following:
Installation
You can install the package via composer:
Making a model archivable
To make model archivable add the Nowendwell\LaravelArchivable\Archivable
trait to the model you wish to archive
Usage
This traits adds a Global Query Scope to exclude any models that have a value in the archived_at
column.
Archiving
Unarchiving
Checking Archive Status
Query Scopes
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Ben Miller
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.