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)0593MITPHP

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 4w 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 40% 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

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

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k4.0k](/packages/leantime-leantime)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11225.5M34](/packages/anourvalar-eloquent-serialize)[duncanmcclean/statamic-cargo

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

3618.3k](/packages/duncanmcclean-statamic-cargo)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21327.3k4](/packages/ecotone-laravel)

PHPackages © 2026

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