diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 7e068c5..e1c734b 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -6,6 +6,7 @@ use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Mail; use Throwable; use Kwaadpepper\ExceptionHandler\Exceptions\ExceptionHandler; +use Sentry\Laravel\Integration; class Handler extends ExceptionHandler { @@ -34,6 +35,8 @@ class Handler extends ExceptionHandler */ public function report(Throwable $exception) { + Integration::captureUnhandledException($exception); + if ($exception instanceof CafelApiImageFetchException) { $this->reportCafelApiImageErrorException($exception); return; diff --git a/routes/web-fo.php b/routes/web-fo.php index 54fae43..a085b5e 100644 --- a/routes/web-fo.php +++ b/routes/web-fo.php @@ -6,6 +6,8 @@ use App\Http\Controllers\Fo\InfoController; use App\Http\Controllers\Fo\TraceaPoultryController; use Illuminate\Support\Facades\Route; +use function Clue\StreamFilter\fun; + Route::domain(config('app.domain'))->group(function () { // * LEGALS and POLICY Route::view('/charte-confidentialite', 'front.pages.policy')->name('policy'); @@ -20,7 +22,13 @@ Route::domain(config('app.domain'))->group(function () { // * Partie Poultry Route::name('poultry.')->group(function () { - Route::view('/', 'front.poultry.search')->name('search'); + //Route::view('/', 'front.poultry.search')->name('search'); + Route::get('/', function () { + $toto = function (int $id, string $pwd) { + var_dump("test"); + }; + $toto("ddd", 3); + })->name('search'); Route::post('/', [TraceaPoultryController::class, 'searchSubmit'])->name('searchSubmit'); Route::get('tracabilite/volaille', [TraceaPoultryController::class, 'show'])->name('show'); Route::get('tracabilite/volaille/distribution', [TraceaPoultryController::class, 'getDistribution'])