An open API service indexing awesome lists of open source software.

https://github.com/awaisejaz/soft-delete-cascade

The Laravel library to apply soft delete on all relations via one soft delete
https://github.com/awaisejaz/soft-delete-cascade

laravel laravel-package php soft-delete soft-delete-cascade

Last synced: 6 months ago
JSON representation

The Laravel library to apply soft delete on all relations via one soft delete

Awesome Lists containing this project

README

          

# soft-delete-cascade
Apply soft delete cascade

## Installation
This project using composer.
```
$ composer require awais/cascade-soft-deletes
```

## Usage
add all tables names in `SoftDeletables` helper and run migration.
use trait `CascadeSoftDeletes` in parent model and add all relationships.