Download the PHP package gaspertrix/laravel-boolean-softdeletes without Composer
On this page you can find all versions of the php package gaspertrix/laravel-boolean-softdeletes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gaspertrix/laravel-boolean-softdeletes
More information about gaspertrix/laravel-boolean-softdeletes
Files in gaspertrix/laravel-boolean-softdeletes
Package laravel-boolean-softdeletes
Short Description Laravel soft deletes optimization for high load queries
License MIT
Homepage https://github.com/gaspertrix/laravel-boolean-softdeletes
Informations about the package laravel-boolean-softdeletes
Laravel 5.5 boolean softdeletes
This package is mostly for high load apps. It will speed up queries with soft deletes. Boolean field is much better for indexing instead of unique timestamps.
Install
Via Composer
Add Webkid\LaravelBooleanSoftdeletes\SoftDeletesBoolean
trait to models with soft deletes.
Then create and run migration to add soft delete boolean field
If you want to use this package for existing project you can use built-in command
Also you can change default column name is_deleted
to any other by setting static property IS_DELETED
of certain model
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Ivan Kolodiy
- All Contributors
License
The MIT License (MIT). Please see License File for more information.