Created
April 5, 2024 15:08
-
-
Save ziadoz/4dbbcce7a7dabd492b5b7ab09ecba966 to your computer and use it in GitHub Desktop.
Laravel - Report All Exceptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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