Download the PHP package signifly/laravel-cancellation without Composer
On this page you can find all versions of the php package signifly/laravel-cancellation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download signifly/laravel-cancellation
More information about signifly/laravel-cancellation
Files in signifly/laravel-cancellation
Package laravel-cancellation
Short Description A laravel cancellation package.
License MIT
Homepage https://github.com/signifly/laravel-cancellation
Informations about the package laravel-cancellation
Cancel models inside your Laravel app
The signifly/laravel-cancellation
package allows you to easily handle cancellation of your models. It is inspired by the SoftDeletes implementation in Laravel.
All you have to do to get started is:
Here's a little demo of how you can use it after adding the trait:
You can query cancelled entities:
Other useful methods:
Installation
You can install the package via composer:
The package will automatically register itself.
You can publish the config with:
Note: If you set the exclude variable to true in your config, your query results will not include cancelled results by default (just like SoftDeletes).
This is the contents of the published config file:
Testing
Security
If you discover any security issues, please email [email protected] instead of using the issue tracker.
Credits
- Morten Poul Jensen
- All contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-cancellation with dependencies
illuminate/database Version ^6.0|^7.0|^8.0
illuminate/support Version ^6.0|^7.0|^8.0