= 05c4e5eab7 Deps: Update composer dependencies to latest versions
- Upgraded `brick/math` to v0.17.2, `guzzlehttp/guzzle` to v7.12.0, `nesbot/carbon` to v3.12.3, and several others for improved performance and bug fixes.
- Updated middleware in `bootstrap/app.php` to render JSON for API exception routes.
2026-06-18 04:54:29 +00:00

26 lines
753 B
PHP

<?php
declare(strict_types=1);
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\{Exceptions, Middleware};
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->web(append: [
App\Http\Middleware\CaptureOidcNonce::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
$exceptions->shouldRenderJsonWhen(
fn (Request $request) => $request->is('api/*'),
);
})->create();