PHPackages                             tenantcloud/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. [Database &amp; ORM](/categories/database)
4. /
5. tenantcloud/laravel-boolean-softdeletes

ActiveLibrary[Database &amp; ORM](/categories/database)

tenantcloud/laravel-boolean-softdeletes
=======================================

Laravel soft deletes optimization for high load queries

v7.0(1y ago)27113.9k—3.7%16[3 PRs](https://github.com/tenantcloud/laravel-boolean-softdeletes/pulls)1MITPHPPHP &gt;=8.2CI passing

Since Jan 3Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/tenantcloud/laravel-boolean-softdeletes)[ Packagist](https://packagist.org/packages/tenantcloud/laravel-boolean-softdeletes)[ RSS](/packages/tenantcloud-laravel-boolean-softdeletes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (20)Used By (1)

Laravel Boolean SoftDeletes
===========================

[](#laravel-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)[![Total Downloads](https://camo.githubusercontent.com/ee72bdb5e9c121d5e895620b2a4753b4dcc28c4baa8b66528750695c87cc53d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656e616e74636c6f75642f6c61726176656c2d626f6f6c65616e2d736f667464656c657465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tenantcloud/laravel-boolean-softdeletes)

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
-------

[](#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(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 name `is_deleted` to any other by setting static property `IS_DELETED`of 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
----------

[](#change-log)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.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

54

—

FairBetter than 97% of packages

Maintenance49

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor3

3 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 ~187 days

Recently: every ~81 days

Total

15

Last Release

428d ago

Major Versions

2.0.0 → 3.02021-04-19

3.1 → 4.02022-09-14

4.0 → 5.02023-06-20

v5.2.0 → v6.02025-02-27

v5.3.0 → v7.02025-03-16

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

3.0PHP ~5.6|~7|~8

4.0PHP ^5.6|^7|^8

5.0PHP ^5.6|^7|^8|^8.1

v5.1.0PHP &gt;=8.1

v5.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/413b481f92caa1d96de546c0417395b0ca178658d9f6ef195ae303a91d2765e5?d=identicon)[ivankolodii](/maintainers/ivankolodii)

![](https://www.gravatar.com/avatar/81579ce1a873c490b1a0d5dc34590cabe83e42997112e083f881ee8e218ed44d?d=identicon)[BrunIF](/maintainers/BrunIF)

![](https://www.gravatar.com/avatar/08f421d0127cd5dd06158a3ef66dee8fa7f6589677349c379be87c46d3acc99c?d=identicon)[tcmbilozub](/maintainers/tcmbilozub)

---

Top Contributors

[![ivankolodii](https://avatars.githubusercontent.com/u/35073476?v=4)](https://github.com/ivankolodii "ivankolodii (11 commits)")[![ben221199](https://avatars.githubusercontent.com/u/12856904?v=4)](https://github.com/ben221199 "ben221199 (10 commits)")[![YaroslavNahirnyi](https://avatars.githubusercontent.com/u/40363149?v=4)](https://github.com/YaroslavNahirnyi "YaroslavNahirnyi (10 commits)")[![tcmbilozub](https://avatars.githubusercontent.com/u/35073636?v=4)](https://github.com/tcmbilozub "tcmbilozub (7 commits)")[![oprypkhantc](https://avatars.githubusercontent.com/u/54406427?v=4)](https://github.com/oprypkhantc "oprypkhantc (5 commits)")[![kolodii-ivan](https://avatars.githubusercontent.com/u/1891846?v=4)](https://github.com/kolodii-ivan "kolodii-ivan (3 commits)")[![package-sync[bot]](https://avatars.githubusercontent.com/u/35073549?v=4)](https://github.com/package-sync[bot] "package-sync[bot] (3 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (3 commits)")[![lindyhopchris](https://avatars.githubusercontent.com/u/4464333?v=4)](https://github.com/lindyhopchris "lindyhopchris (2 commits)")[![mykola-yatsenko-engineer](https://avatars.githubusercontent.com/u/196163492?v=4)](https://github.com/mykola-yatsenko-engineer "mykola-yatsenko-engineer (2 commits)")[![m7mdsa3ed](https://avatars.githubusercontent.com/u/22124573?v=4)](https://github.com/m7mdsa3ed "m7mdsa3ed (2 commits)")

---

Tags

laravelpackagephp

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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