Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

License

NotificationsYou must be signed in to change notification settings

tenantcloud/laravel-boolean-softdeletes

Repository files navigation

Latest Version on PackagistSoftware LicenseTotal Downloads

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.

Install

Via Composer

$ composer require tenantcloud/laravel-boolean-softdeletes

AddWebkid\LaravelBooleanSoftdeletes\SoftDeletesBoolean trait to models with soft deletes.

Then create and run migration to add soft delete boolean field

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

php artisan softdeletes:migrate

Also you can change default column nameis_deleted to any other by setting static propertyIS_DELETEDof certain model

Versions compatibility

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

Change log

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security

If you discover any security related issues, please emailkolodiy.ivan.i@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.

About

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.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors11

Languages


[8]ページ先頭

©2009-2026 Movatter.jp