I have a DB Model with
Classes. Several students belong to one class.
If the user wants to delete a class with students assigned to it, this request SHOULD fail. However, it does fail with an SQL Integrity Constraint violation, because I could not figure out how to test for this case with Laravel's validator. Any ideas?