PHPackages                             codewiser/soft-deletes - 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. codewiser/soft-deletes

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

codewiser/soft-deletes
======================

Laravel Soft Deleting (Passive)

v1.0.3(1y ago)0275MITPHPPHP ^8.1

Since Feb 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/C0deWiser/soft-deletes)[ Packagist](https://packagist.org/packages/codewiser/soft-deletes)[ RSS](/packages/codewiser-soft-deletes/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel Soft Deleting (Passive)
===============================

[](#laravel-soft-deleting-passive)

This package provides Laravel Model Soft Deleting functionality that is disabled by default. No models are scoped out implicitly.

```
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Codewiser\SoftDeletes\PassiveSoftDeletes;

class Flight extends Model
{
    use PassiveSoftDeletes;
}
```

Alternatively to Laravel `SoftDeletes`, `PassiveSoftDeletes` counts model as thrashed not only then `deleted_at` attribute is not null but `deleted_at`is in the past. So you may trash models in advance.

As `PassiveSoftDeletes` doesn't apply any scopes by default, `Route::withTrashed()` is unnecessary. You should explicitly scope queries.

Builder
-------

[](#builder)

`PassiveSoftDeletes` doesn't utilize `withTrashed` builder method. You may use it but it has no sense.

`withoutTrashed` and `onlyTrashed` methods influence to records trashed to current moment of time. You may pass the exact date.

```
// Will exclude flights with `deleted_at` < now()

Flight::query()->withoutTrashed();

// Will return only flights with `deleted_at` in a next month

Flight::query()->onlyTrashed(now()->addMonth());
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance50

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~41 days

Total

4

Last Release

367d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1220316?v=4)[Michael Michaelson](/maintainers/Cellard)[@Cellard](https://github.com/Cellard)

---

Top Contributors

[![Cellard](https://avatars.githubusercontent.com/u/1220316?v=4)](https://github.com/Cellard "Cellard (5 commits)")

---

Tags

laravelsoft-deletes

### Embed Badge

![Health badge](/badges/codewiser-soft-deletes/health.svg)

```
[![Health](https://phpackages.com/badges/codewiser-soft-deletes/health.svg)](https://phpackages.com/packages/codewiser-soft-deletes)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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