Download the PHP package pristavu/laravel-cancellation without Composer
On this page you can find all versions of the php package pristavu/laravel-cancellation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pristavu/laravel-cancellation
More information about pristavu/laravel-cancellation
Files in pristavu/laravel-cancellation
Package laravel-cancellation
Short Description A laravel cancellation package
License MIT
Homepage https://github.com/pristavu/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|^9.0|^10.0|^11.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0