Level 73
You can catch the exception in your App\Exceptions\Handler.php class
change the register method with this:
public function register()
{
$this->reportable(function (QueryException $e) {
dd('test');
})->stop();
}
refresh the page, and you'll see test.. Take a look here: https://laravel.com/docs/10.x/errors#introduction
1 like