I have read Soft Delete Cascading with Laravel 5.2 ... now I am thinking that the information about the relation is already covered in the belongsTo().
Did anybody already create an automatism to check during deletion if any of the relations are touched and
either
a) delete those (DELETE CASCADE emulation) b) throw an exception (DELETE RESTRICT emulation)
Otherwise let's create one :-)
Question concerning this:
- How can all the foreign relations of a model be queried