Custom error messages for only api for cases like Integrity constraint violations and all in laravel 6
Coming straight to the point, how to have custom errors for the errors such as integrity violations or any such error which needs to tell user in simple words, what when wrong ...