ldc-arcadia-api/bootstrap/middlewares.php
Jérémy Munsch d9329aca92
feat(errors): add detailed error documentation pages
- Implemented views for error codes 400, 404, 422, 429, 500, and 503.
- Updated error handling to use numeric codes instead of enum.
- Enhanced error messages and resolution steps for better user guidance.
2026-08-12 17:40:18 +02:00

22 lines
391 B
PHP

<?php
declare(strict_types=1);
use Illuminate\Foundation\Configuration\Middleware;
return function (Middleware $middleware): void {
$middleware->web(append: [
'throttle:web',
]);
$middleware->api(append: [
'throttle:api.v1',
]);
$middleware->alias([
]);
$middleware->preventRequestsDuringMaintenance(except: [
'errors/*',
]);
};