withRouting( web: __DIR__ . '/../routes/web.php', api: __DIR__ . '/../routes/api.php', commands: __DIR__ . '/../routes/console.php', health: '/up', ) ->withMiddleware(require __DIR__ . '/middlewares.php') ->withExceptions(require __DIR__ . '/exceptions.php') ->create(); $app->useAppPath($app->basePath('src/Presentation')); return $app;