Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created April 5, 2024 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/4dbbcce7a7dabd492b5b7ab09ecba966 to your computer and use it in GitHub Desktop.
Save ziadoz/4dbbcce7a7dabd492b5b7ab09ecba966 to your computer and use it in GitHub Desktop.
Laravel - Report All Exceptions
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
public function register(): void
{
// Stop ignoring all internally ignored exceptions.
foreach ($this->internalDontReport as $e) {
$this->stopIgnoring($e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment