Files
cv4/bootstrap/app.php
User 58f85bfc22 History Links
LocalStorage for reading mode
Debugging with Sentry
2024-12-28 15:34:35 -05:00

28 lines
910 B
PHP

<?php
use App\Http\Middleware\HandleInertiaRequests;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets;
use Sentry\Laravel\Integration;
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) {
$middleware->web(append: [
HandleInertiaRequests::class,
AddLinkHeadersForPreloadedAssets::class,
]);
$middleware->statefulApi();
//
})
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);
})->create();