• Mahmoud Aglan's avatar
    Mobile API Phase 1: Sanctum auth, OTP flow, participant endpoints · 7a8a5594
    Mahmoud Aglan authored
    - 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: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    7a8a5594
DeviceController.php 2.24 KB