Askedio / laravel-soft-cascade

Cascade Delete & Restore when using Laravel SoftDeletes
https://medium.com/asked-io/cascading-softdeletes-with-laravel-5-a1a9335a5b4d
MIT License
705 stars 63 forks source link

Support query builder #67

Closed gcphost closed 6 years ago

gcphost commented 6 years ago

I ran across this in a comment earlier:

https://github.com/jarektkaczyk/eloquent-cascade/

It would be nice if we can support the QB too, if we don't already.

maguilar92 commented 6 years ago

We support query builder, the section of readme.md is:

It can also be used with query builder in this way because query builder listener is executed after query, we need to use transaction for rollback query on error due to restricted relationships

gcphost commented 6 years ago

Oh forgive me for not reading the manual :(

maguilar92 commented 6 years ago

Hehehe no problem!! We have the most complete package @gcphost