You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Cascading eliminations implemented in polymorphic relationships for the Laravel apps
This package permit add a trait for use in Elocuents Models that deletes incascade the Polymorphic Relations (MorphOne,MorphMany orMorphToMany).
Installation
This package can be used in Laravel 5.5 or higher.
You can install the package via composer:
composer require cesargb/laravel-cascade-delete
Use
Use the traitCesargb\Database\Support\CascadeDelete in your Elocuent Model and define de propertycascadeDeleteMorph whith one String or Array with your methods than define the Polymorphic Relations.