update controllers logic
This commit is contained in:
Executable → Regular
Executable → Regular
@@ -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
Executable → Regular
@@ -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
Executable → Regular
+2
-1
@@ -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
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user