Laravel Softdelete with foreign key and restrict constraints?
<p>I was wondering how to use <strong>Laravels softdelete</strong> with something like MySql <strong>foreign key restrict</strong> constraints.</p>

<p>Is there already something build into the framework? Softdelete is already working but I need some kind of validation to related models. e.g. an error message to the user "You cannot delete this item because it hast 5 related records" </p>

<p>Thanks,</p>