All I\'m trying to do is verify a query.
\'SELECT * from table_that_does_not_exist\'
Without that erroring out, I\'d like to know it failed
If you want to catch all types of database exceptions you can catch it on laravel Exception Handler
Exception Handler
if ($exception instanceof \PDOException) { # render a custom error }
for more details about how to use laravel Exception Handler check https://laravel.com/docs/7.x/errors