How polaris-academy/backend-laravel works
Polaris is a Laravel academic learning platform with mobile and web clients. The main student workflow is account/profile setup, browsing structured course content, enrolling, tracking video completion, and earning badges; teachers manage courses and admins oversee access and reporting. Social interaction, notifications, support, and content moderation are parallel capabilities. Source excerpts establish several service and model relationships; broader feature links rely on the README, so unsampled implementation details are not expanded.
Main entry points: ContentStructureController.php Course structure API · NotificationService.php Notification service · Enrollment.php Enrollment progress · AuthController.php Authentication API
Components 24
Identity and access
- Authentication API
app/Http/Controllers/API/Auth/AuthController.php - Profile service
app/Services/ProfileService.php
Learning experience
- Course structure API
app/Http/Controllers/API/Mobile/ContentStructureController.php - Teacher course tools
app/Http/Controllers/API/Mobile/TeacherProfileController.php
Community and engagement
- Badges and streaks
app/Models/StudentProfile.php - Comments and favorites
app/Http/Controllers/API/Mobile/CommentController.php - Notification service
app/Services/NotificationService.php - Content reports
app/Http/Controllers/API/Mobile/ContentReport - Support tickets
app/Http/Controllers/API/Mobile/SupportTicket
Administration and reporting
- Code redemption
app/Services/CodeRedemptionService.php - Activation code API
app/Http/Controllers/API/Web/AdminActivationCodeController.php - Admin dashboard
app/Http/Controllers/API/Web/AdminDashboardController.php - Report exports
app/Http/Controllers/API/Web/ReportExportController.php
Domain data
- Users and profiles
app/Models/User.php - Courses
app/Models/Course.php - Units and materials
app/Models/Unit.php - Videos and progress
app/Models/Video.php - Enrollment progress
app/Models/Enrollment.php - Notification records
app/Models/Notification.php - Device tokens
app/Models/DeviceToken.php
Other components
- Students and teachers
- Mobile app
- Web dashboard
- Firebase messaging
Connections 27
- Students and teachers → Mobile app: use
- Mobile app → Authentication API: authenticate
- Web dashboard → Authentication API: authenticate
- Authentication API → Profile service: creates profiles
app/Http/Controllers/API/Auth/AuthController.php - Profile service → Users and profiles: creates profiles
app/Services/ProfileService.php - Mobile app → Course structure API: browse courses
- Course structure API → Courses: queries courses
app/Http/Controllers/API/Mobile/ContentStructureController.php - Course structure API → Units and materials: loads units
app/Http/Controllers/API/Mobile/ContentStructureController.php - Course structure API → Videos and progress: loads videos
app/Http/Controllers/API/Mobile/ContentStructureController.php - Teacher course tools → Courses: manages courses
app/Http/Controllers/API/Mobile/TeacherProfileController.php - Courses → Units and materials: has units
app/Models/Course.php - Units and materials → Videos and progress: has videos
app/Models/Unit.php - Students and teachers → Enrollment progress: enroll and learn
- Enrollment progress → Videos and progress: counts completion
app/Models/Enrollment.php - Enrollment progress → Badges and streaks: awards progress
app/Models/Enrollment.php - Web dashboard → Activation code API: manage codes
- Activation code API → Code redemption: redeems codes
app/Http/Controllers/API/Web/AdminActivationCodeController.php - Code redemption → Enrollment progress: creates enrollment
app/Services/CodeRedemptionService.php - Mobile app → Comments and favorites: interact socially
- Badges and streaks → Notification service: sends awards
app/Models/StudentProfile.php - Notification service → Notification records: stores notification
app/Services/NotificationService.php - Notification service → Device tokens: loads tokens
app/Services/NotificationService.php - Notification service → Firebase messaging: pushes alerts
app/Services/NotificationService.php - Mobile app → Content reports: report content
- Mobile app → Support tickets: request support
- Web dashboard → Admin dashboard: review activity
- Admin dashboard → Report exports: export reports