update controllers logic

This commit is contained in:
root
2026-04-23 00:04:35 -04:00
parent 1977a513df
commit ca4ba272fc
353 changed files with 13402 additions and 1301 deletions
Executable → Regular
View File
Executable → Regular
View File
+13
View File
@@ -0,0 +1,13 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Student badge PDF (Dompdf layout)
|--------------------------------------------------------------------------
*/
'school_name' => env('BADGE_SCHOOL_NAME', 'Al Rahma Sunday School'),
'motto' => env('BADGE_MOTTO', 'Learn • Lead • Succeed'),
'role_label' => env('BADGE_ROLE_LABEL', 'Student'),
'footer_address' => env('BADGE_FOOTER_ADDRESS', ''),
];
Executable → Regular
View File
Executable → Regular
View File
+51
View File
@@ -0,0 +1,51 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| SPA base URL for API documentation (React/Vue client)
|--------------------------------------------------------------------------
|
| Used by web redirects (e.g. `/`) so browsers land on the Swagger UI SPA
| instead of a Blade view.
|
*/
'client_url' => env('DOCS_CLIENT_URL', 'http://localhost:5173'),
/*
|--------------------------------------------------------------------------
| Docs hub (CI: `DocsController::index` / docs/index view)
|--------------------------------------------------------------------------
*/
'index' => [
'title' => env('DOCS_INDEX_TITLE', 'API documentation'),
'description' => env('DOCS_INDEX_DESCRIPTION', ''),
],
/*
|--------------------------------------------------------------------------
| Static OpenAPI YAML files (CI: public/docs/*.yaml + View\DocsController::swagger)
|--------------------------------------------------------------------------
|
| Deploy the same YAML files under `public/docs/` or adjust paths. Dropdown
| URLs are built via ApplicationUrlService::absolutePublicPathUrl in DocsCatalogService.
| The merged JSON is served at GET /api/documentation/swagger.json (route name
| `docs.swagger-json`; see DocsCatalogController::swaggerMergedJson).
|
*/
'swagger_specs' => [
[
'name' => 'Administrator API',
'path' => '/docs/openapi_administrator_controller.yaml',
],
[
'name' => 'Parent API',
'path' => '/docs/openapi_parent_controller.yaml',
],
],
];
Executable → Regular
View File
Executable → Regular
+2 -1
View File
@@ -89,7 +89,8 @@ return [
|
*/
'ttl' => (int) env('JWT_TTL', 60),
// CodeIgniter apiLogin uses exp = iat + 86400 (24h). Default below matches that when JWT_TTL is unset.
'ttl' => (int) env('JWT_TTL', 1440),
/*
|--------------------------------------------------------------------------
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File