Loheide-eu-mitarbeiterplatt.../bootstrap/app.php
Friederich Loheide f11a3e24b3
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m0s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m50s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m38s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m56s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 7m5s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m17s
Phase 8 Mobil: REST-API, Web-Push, installierbare App (0.25.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 08:20:07 +00:00

39 lines
1.4 KiB
PHP

<?php
use App\Http\Middleware\EnsureNotInMaintenance;
use App\Http\Middleware\HandleInertiaRequests;
use App\Http\Middleware\RedirectToInstaller;
use App\Http\Middleware\RunPendingMigrations;
use App\Http\Middleware\RunPseudoCron;
use App\Http\Middleware\ThemePreview;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;
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 {
// SAML-Antworten kommen per POST vom Anbieter (siehe routes/web.php).
$middleware->validateCsrfTokens(except: ['auth/*/callback']);
$middleware->web(prepend: [
EnsureNotInMaintenance::class,
RedirectToInstaller::class,
], append: [
RunPendingMigrations::class,
ThemePreview::class,
HandleInertiaRequests::class,
RunPseudoCron::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
$exceptions->shouldRenderJsonWhen(
fn (Request $request) => $request->is('api/*') || $request->expectsJson(),
);
})->create();