migration

This commit is contained in:
2026-01-07 22:18:43 +00:00
parent 8d681da7a1
commit 66cddf3fb2
29 changed files with 2250 additions and 638 deletions

View File

@@ -11,9 +11,16 @@ return Application::configure(basePath: dirname(__DIR__))
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
//
->withMiddleware(function (Middleware $middleware) {
// Middleware
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();
->withExceptions(function (Exceptions $exceptions) {
$exceptions->render(function (Throwable $e, Request $request) {
if ($request->expectsJson()) {
return response()->json([
'message' => $e->getMessage(),
], 500);
}
});
})
->create();