# michaeldyrynda/laravel-cascade-soft-deletes

Cascading deletes for Eloquent models that implement soft deletes

Repository: https://github.com/michaeldyrynda/laravel-cascade-soft-deletes
Canonical: https://ross.abutalabs.com/products/laravel-cascade-soft-deletes
Homepage: https://dyrynda.com.au
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, eloquent, eloquent-models, package
Last push: 2026-03-20T21:09:58+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 63, longevity 100
- inputs: {"age_days": 3776, "days_push": 166, "days_rel": 166, "gap_med": 50, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1180, forks 86 (observed 2026-08-28T04:03:53.539244+00:00)

## What it is
A Laravel package that adds cascading deletes to Eloquent models using soft deletes, restoring the ON DELETE CASCADE behavior lost when using the SoftDeletes trait. Child relationships are soft deleted alongside parents when a model is deleted.

## Use cases
- cascade soft deletes to related eloquent models
- soft delete parent and child records in laravel
- restore cascade delete behavior with soft deletes
- automatically soft delete related models when parent is deleted
- laravel package for cascading soft deletes

## When to choose
- you use Laravel's SoftDeletes and need related records deleted too
- you want application-level cascading instead of database foreign key constraints
- you need cascading across nested relationships

## When to avoid
- you don't use soft deletes (plain database ON DELETE CASCADE suffices)
- you need to restore children along with the parent (children restoration is not tracked)
- you're not using Laravel or Eloquent

## Facets
- artifact type: library
- maturity: active
- function: orm, database
- domain: web-development, databases, backend
- platform: php
- tags: laravel-package, eloquent, soft-deletes, cascade-deletes, composer-package, laravel

## Member repositories
- michaeldyrynda/laravel-cascade-soft-deletes (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:53.539244+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:25:19.446604+00:00, confidence not recorded.
  - readme: https://github.com/michaeldyrynda/laravel-cascade-soft-deletes (fetched 2026-08-28T04:03:53.539244+00:00, sha ab0cc0340165)
  - homepage: https://dyrynda.com.au (fetched 2026-08-29T12:32:08.215397+00:00, sha 49dc3a5f2737)
- Data as of 2026-08-30T08:39:29.467469+00:00.
