Download the PHP package joggapp/laravel-cascade-soft-deletes without Composer
On this page you can find all versions of the php package joggapp/laravel-cascade-soft-deletes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-cascade-soft-deletes
Cascading soft deletes for the Laravel PHP Framework
Implementation
- Add the
JoggApp\LaravelCascadeSoftDeletes\Traits\CascadeSoftDeletes
trait to parents models. - Set
protected $cascadeSoftDeletes
to an array of child relationships for soft deletes to cascade down to.
Code Samples
Now you can delete an App\Models\User
record, and any associated App\Models\Post
records will be deleted. If the App\Models\Post
record implements the CascadeSoftDeletes
trait as well, it's children will also be deleted and so on.
All versions of laravel-cascade-soft-deletes with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
^11.0
The package joggapp/laravel-cascade-soft-deletes contains the following files
Loading the files please wait ....