complete story 8.10 with qa test

This commit is contained in:
Naser Mansour
2026-01-02 23:14:53 +02:00
parent 78b3a01c4d
commit 97dca05562
13 changed files with 908 additions and 29 deletions
+8 -1
View File
@@ -1,5 +1,6 @@
<?php
use App\Services\AdminNotificationService;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
@@ -22,5 +23,11 @@ return Application::configure(basePath: dirname(__DIR__))
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//
$exceptions->reportable(function (Throwable $e) {
$service = app(AdminNotificationService::class);
if ($service->shouldNotifyAdmin($e)) {
$service->notifyError($e);
}
});
})->create();