migrations and models
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user