PHPackages                             gaspertrix/laravel-boolean-softdeletes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gaspertrix/laravel-boolean-softdeletes

ActiveLibrary

gaspertrix/laravel-boolean-softdeletes
======================================

Laravel soft deletes optimization for high load queries

1.0.0(5y ago)0117MITPHPPHP ~7.2

Since Jan 3Pushed 5y agoCompare

[ Source](https://github.com/Gaspertrix/laravel-boolean-softdeletes)[ Packagist](https://packagist.org/packages/gaspertrix/laravel-boolean-softdeletes)[ Docs](https://github.com/gaspertrix/laravel-boolean-softdeletes)[ RSS](/packages/gaspertrix-laravel-boolean-softdeletes/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Laravel 5.5 boolean softdeletes
===============================

[](#laravel-55-boolean-softdeletes)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ad9ce8701fbcd0899da85668830a705bab150e7934a4d3d8f75cda0579a7ed1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656e616e74636c6f75642f6c61726176656c2d626f6f6c65616e2d736f667464656c657465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tenantcloud/laravel-boolean-softdeletes)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1965ece734484e8153c34d22b9832f9e8189bfe27138823cea70854cf772209e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74656e616e74636c6f75642f6c61726176656c2d626f6f6c65616e2d736f667464656c657465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tenantcloud/laravel-boolean-softdeletes)[![Coverage Status](https://camo.githubusercontent.com/c58d05d7374fe2e073248ca84496ea2af69c6551372ba2dcfc94032bbba0770c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74656e616e74636c6f75642f6c61726176656c2d626f6f6c65616e2d736f667464656c657465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tenantcloud/laravel-boolean-softdeletes/code-structure)[![Quality Score](https://camo.githubusercontent.com/30e90e941030c088161639a82dc100e70327cfd524fc9bce4368d2f004b31217/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74656e616e74636c6f75642f6c61726176656c2d626f6f6c65616e2d736f667464656c657465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tenantcloud/laravel-boolean-softdeletes)[![Total Downloads](https://camo.githubusercontent.com/ee72bdb5e9c121d5e895620b2a4753b4dcc28c4baa8b66528750695c87cc53d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656e616e74636c6f75642f6c61726176656c2d626f6f6c65616e2d736f667464656c657465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tenantcloud/laravel-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
-------

[](#install)

Via Composer

```
$ composer require tenantcloud/laravel-boolean-softdeletes
```

Add `Webkid\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(0)->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 name `is_deleted` to any other by setting static property `IS_DELETED`of certain model

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ivan Kolodiy](https://github.com/ivankolodii)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~288 days

Total

4

Last Release

2183d ago

Major Versions

0.1.2 → 1.0.02020-05-20

PHP version history (2 changes)0.1.0PHP ~5.6|~7.0

1.0.0PHP ~7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5238d5e2c44dc754b890ae5ceeda931183e1233f70d9afcb4797e774a84f4785?d=identicon)[Gaspertrix](/maintainers/Gaspertrix)

---

Top Contributors

[![kolodii-ivan](https://avatars.githubusercontent.com/u/1891846?v=4)](https://github.com/kolodii-ivan "kolodii-ivan (3 commits)")[![ivankolodii](https://avatars.githubusercontent.com/u/35073476?v=4)](https://github.com/ivankolodii "ivankolodii (2 commits)")[![YaroslavNahirnyi](https://avatars.githubusercontent.com/u/40363149?v=4)](https://github.com/YaroslavNahirnyi "YaroslavNahirnyi (2 commits)")

---

Tags

LaravelBooleanSoftdeletesTenantCloud

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gaspertrix-laravel-boolean-softdeletes/health.svg)

```
[![Health](https://phpackages.com/badges/gaspertrix-laravel-boolean-softdeletes/health.svg)](https://phpackages.com/packages/gaspertrix-laravel-boolean-softdeletes)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
