Mobile API Phase 1: Sanctum auth, OTP flow, participant endpoints
- Install Laravel Sanctum, add HasApiTokens to User model
- Register API routes under /api/v1/ prefix in bootstrap/app.php
- Create AppConfigController (public): academy branding, feature flags, auth mode
- Create AuthOtpController: OTP request/verify with demo mode, rate limiting
- Create DeviceController: FCM token register/refresh/delete
- Create ParticipantController: children, show, summary, schedule, attendance, invoices, enrollments
- Create API Resources (User, Participant, Session, Attendance, Invoice, Enrollment)
- Create device_tokens migration with platform CHECK constraint
- Create DeviceToken model with BelongsToAcademy trait
- Add mobile API implementation plan document
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
This diff is collapsed.
| ... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
| "require": { | "require": { | ||
| "php": "^8.4", | "php": "^8.4", | ||
| "laravel/framework": "^13.8", | "laravel/framework": "^13.8", | ||
| "laravel/sanctum": "^4.3", | |||
| "laravel/tinker": "^3.0", | "laravel/tinker": "^3.0", | ||
| "livewire/livewire": "^4.3" | "livewire/livewire": "^4.3" | ||
| }, | }, | ||
| ... | @@ -23,7 +24,8 @@ | ... | @@ -23,7 +24,8 @@ |
| "autoload": { | "autoload": { | ||
| "files": [ | "files": [ | ||
| "app/Helpers/money.php", | "app/Helpers/money.php", | ||
| "app/Helpers/whatsapp.php" | "app/Helpers/whatsapp.php", | ||
| "app/Helpers/video.php" | |||
| ], | ], | ||
| "psr-4": { | "psr-4": { | ||
| "App\\": "app/", | "App\\": "app/", | ||
| ... | ... |
Please register or sign in to comment