Refactor project structure and update dependencies

This commit is contained in:
2025-05-11 16:17:40 +02:00
parent 81d692a19b
commit 813f7b18d8
73 changed files with 10156 additions and 7756 deletions

View File

@@ -21,6 +21,9 @@ return Application::configure(basePath: dirname(__DIR__))
->throttleApi(redis: true)
->trustProxies(at: [
'127.0.0.1',
'10.0.0.0/8',
'172.16.0.0/12',
'192.168.0.0/16',
])
->api(prepend: [
JsonResponse::class,
@@ -62,7 +65,7 @@ return Application::configure(basePath: dirname(__DIR__))
'message' => $e->getMessage(),
'errors' => array_map(function ($field, $errors) {
return [
'path' => $field,
'name' => $field,
'message' => implode(' ', $errors),
];
}, array_keys($e->errors()), $e->errors()),