When I tried to delete a row which ID related to another table I got this error
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row
How can I show this error. I've tried with try catch (\Illuminate\Database\QueryException $e) But it not work Can I have your help!