PHPackages                             evostudio/deactivation - 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. evostudio/deactivation

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

evostudio/deactivation
======================

Add deactivation field for Eloquent models

1.2(4y ago)0555MITPHP

Since Jan 3Pushed 4y agoCompare

[ Source](https://github.com/evostudio-pl/laravel-model-deactivation)[ Packagist](https://packagist.org/packages/evostudio/deactivation)[ RSS](/packages/evostudio-deactivation/feed)WikiDiscussions master Synced 3w ago

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

What it does
------------

[](#what-it-does)

This package allows you to add trait (similar to soft deletes) for Laravel Eloquent models.

In our projects we usually use soft deletes for models. When customers delete an object in the application, e.g. in the administration panel, they are usually not interested in whether the record was actually deleted from the table or just marked as deleted by using soft deletes. However, there is often a need to temporarily hide an object, e.g. an article, user or a dictionary entry.

Then we use deactivable trait.

Installation
------------

[](#installation)

Install the package via Composer:

```
$ composer require evostudio/deactivation
```

The package will automatically register its service provider.

Updating your Eloquent Models
-----------------------------

[](#updating-your-eloquent-models)

Your models should use the Deactivable trait.

```
use EvoStudio\Deactivation\Deactivable;

class Client extends Model
{
    use Deactivable;
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

3

Last Release

1472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0dbcf282f742ebd0a822476f21f7ddb3aac459e098fd33dc11442e3cf678a8a5?d=identicon)[evostudio](/maintainers/evostudio)

---

Top Contributors

[![herrlein-dawid](https://avatars.githubusercontent.com/u/72010889?v=4)](https://github.com/herrlein-dawid "herrlein-dawid (5 commits)")

### Embed Badge

![Health badge](/badges/evostudio-deactivation/health.svg)

```
[![Health](https://phpackages.com/badges/evostudio-deactivation/health.svg)](https://phpackages.com/packages/evostudio-deactivation)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11222.5M32](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[mozex/laravel-scout-bulk-actions

Import, flush, and queue-import all your Laravel Scout searchable models at once. Auto-discovers models, runs in bulk, tracks progress.

1437.7k](/packages/mozex-laravel-scout-bulk-actions)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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