PHPackages                             nitinkaware/laravel-dependable-softdelete - 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. nitinkaware/laravel-dependable-softdelete

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

nitinkaware/laravel-dependable-softdelete
=========================================

A laravel dependable soft delete package

1.0.0(9y ago)416MITPHPPHP ~5.6|~7.0

Since Mar 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nitinkaware/laravel-dependable-softdelete)[ Packagist](https://packagist.org/packages/nitinkaware/laravel-dependable-softdelete)[ Docs](https://github.com/nitinkaware/laravel-dependable-softdelete.git)[ RSS](/packages/nitinkaware-laravel-dependable-softdelete/feed)WikiDiscussions master Synced 1mo ago

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

laravel-dependable-softdelete
=============================

[](#laravel-dependable-softdelete)

This package allows you to delete the dependant relationship of your model.

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

[](#installation)

You can install the package via Composer:

```
$ composer require nitinkaware/laravel-dependable-softdelete
```

Now add the service provider in config/app.php file:

```
'providers' => [
    // ...
    NitinKaware\DependableSoftDeletable\SoftDeletableServiceProvider::class,
];
```

\##How to use the package?

Just define the relationship array on model.

```
Filename: User.php

class User extends Model {

    use DependableDeleteTrait, SoftDeletes;

    protected static $dependableRelationships = ['comments'];

    public fuction comments()
    {
        return $this->hasMany(Comment::class);
    }
}
```

Now when you will delete the user, all the comments associated with deleting user will automatically deleted. If you have other relation defined in Comment.php model, then they will be deleted too.

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 [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d3e9264ee11b9c6eb9a630fcbd0db42c8b145e541414f817f22b6841cf05f48?d=identicon)[nitinkaware](/maintainers/nitinkaware)

---

Top Contributors

[![nitinkaware](https://avatars.githubusercontent.com/u/17737553?v=4)](https://github.com/nitinkaware "nitinkaware (6 commits)")

---

Tags

laravelsoft-deletelaravel-soft-deletable

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nitinkaware-laravel-dependable-softdelete/health.svg)

```
[![Health](https://phpackages.com/badges/nitinkaware-laravel-dependable-softdelete/health.svg)](https://phpackages.com/packages/nitinkaware-laravel-dependable-softdelete)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[watson/validating

Eloquent model validating trait.

9723.3M46](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

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

PHPackages © 2026

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