2017 © Pedro Peláez
 

library laravel-boolean-softdeletes

Laravel soft deletes optimization for high load queries

image

tenantcloud/laravel-boolean-softdeletes

Laravel soft deletes optimization for high load queries

  • Sunday, January 7, 2018
  • by ivankolodii
  • Repository
  • 0 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 30 % Grown

The README.md

Laravel Boolean SoftDeletes

Latest Version on Packagist ![Software License][ico-license] ![Total Downloads][ico-downloads], (*1)

This package is designed for high-load applications and optimizes queries with soft deletes by utilizing a boolean field for indexing, which is more efficient than using unique timestamps., (*2)

Install

Via Composer, (*3)

$ composer require tenantcloud/laravel-boolean-softdeletes

Add Webkid\LaravelBooleanSoftdeletes\SoftDeletesBoolean trait to models with soft deletes., (*4)

Then create and run migration to add soft delete boolean field, (*5)

Schema::table('users', function (Blueprint $table) {
    $table->boolean('is_deleted')->default(false)->index();
});

If you want to use this package for existing project you can use built-in command, (*6)

php artisan softdeletes:migrate

Also you can change default column name is_deleted to any other by setting static property IS_DELETEDof certain model, (*7)

Versions compatibility, (*8)

For Laravel 10 - laravel-boolean-softdeletes 5.*
For Laravel 11 - laravel-boolean-softdeletes 6.*
For Laravel 12 - laravel-boolean-softdeletes 7.*

Change log

Please see CHANGELOG for more information on what has changed recently., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email kolodiy.ivan.i@gmail.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

07/01 2018

dev-master

9999999-dev https://github.com/tenantcloud/laravel-boolean-softdeletes

Laravel soft deletes optimization for high load queries

  Sources   Download

MIT

The Requires

 

The Development Requires

laravelbooleansoftdeletes tenantcloud

03/01 2018

0.1.0

0.1.0.0 https://github.com/Webkid/LaravelBooleanSoftdeletes

Laravel soft deletes optimization for high load queries

  Sources   Download

MIT

The Requires

 

The Development Requires

webkid laravelbooleansoftdeletes