This is a package to extends soft delete to use to archive models.
felipedecampos/laravel-soft-archive is a Laravel package for this is a package to extends soft delete to use to archive models..
It currently has 0 GitHub stars and 0 downloads on Packagist (latest version 1.0.0).
Install it with composer require felipedecampos/laravel-soft-archive.
Discover more Laravel packages by felipedecampos
or browse all Laravel packages to compare alternatives.
Last updated
This is a package to extends soft delete to use to archive models.
You can install the package via composer:
composer require felipedecampos/laravel-soft-archive
Optionally you can publish the configfile with:
php artisan vendor:publish --provider="FelipeDeCampos\LaravelSoftArchive\Providers\ArchiveServiceProvider" --tag="config"
Add the soft archive trait to your model, like the example below:
class ArchivedModel extends Model
{
use SoftArchives;
}
To archive the entity use the archive() method like the example below:
ArchivedModel::withoutArchived()->find($id)->archive();
To activate the entity use the unarchive() method like the example below:
ArchivedModel::withArchived()->find($id)->unarchive();
vendor/bin/phpunit
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.
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Av. Bartholomeu de Carlos, 747 Apto. 32A - Jardim Flor da Montanha, São Paulo / Brazil.
We publish all received postcards on our company website.
Bettorld is a webdesign agency based in São Paulo, Brazi. You'll find an overview of all our open source projects on our website.
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
The MIT License (MIT). Please see License File for more information.