Nevertheless on 404 errors (Page not found.) this mechanism does not work. Laravel does show me a 404 error screen but I don't get the real exception. In /app/Exceptions/Handler.php the $dontReport array is empty and in its parent class /vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php the internal don't reports are commented out (just for testing):
How is it possible to render the actual HttpExceptions? I would like to get an info if any route does not work (independent if it's just a typo or a real missing route...).
public function report(Throwable $exception)
{
if ($this->isNotFoundException($exception)) {
// Send you mail here !!! :)
}
parent::report($exception);
}