Answer the question
In order to leave comments, you need to log in
How to delete a section with subsections in Baum?
Good evening. Please clarify how to correctly delete a section with all children in the baum extension in Laravel. I fiddled with this for several hours, but did not understand how best to do it.
Answer the question
In order to leave comments, you need to log in
I assume you want to remove all descendants. It is better to do this through an event subscription. When the "deleting" event occurs, you must take all the children and delete them. Accordingly, if the descendants have other descendants, then this event will also occur on the first ones.
Regarding events and their processing, read here
Doc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question