withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { $proxies = env('TRUSTED_PROXIES', '127.0.0.1,::1'); $middleware->trustProxies(at: $proxies === '*' ? '*' : array_map('trim', explode(',', $proxies))); $middleware->web(append: [ \App\Http\Middleware\AddContentSecurityPolicy::class, ]); }) ->withExceptions(function (Exceptions $exceptions): void { // })->create();