How chase-ian/pnp-spt-platform-prototype works
SPT-Platform is a role-based PNP learning management system. Trainees register or sign in, enroll in courses, progress through sequential lessons and lesson quizzes, take a gated final exam, and receive certificates on passing. Admins author courses and learning content and manage staff; supervisors monitor trainee progress. The README documents these capabilities and the deployed TiDB/S3 backing services. The source excerpts confirm exam grading and certificate issuance, and lesson authoring with PPTX extraction. Other subsystem links are based on README statements; unsampled implementations are not inferred in detail.
Main entry points: Models Course and lesson records · LessonController.php Lesson authoring · ModuleController.php Module management · CertificateController.php Certificate issuance
Components 24
Identity and access
- Registration and login
spt-platform/app/Http/Controllers/Auth - Role authorization
spt-platform/app/Http/Middleware/EnsureUserHasRole.php - User accounts
spt-platform/app/Models/User.php
Learning content
- Course management
spt-platform/app/Http/Controllers/Admin/CourseController.php - Module management
spt-platform/app/Http/Controllers/Admin/ModuleController.php - Lesson authoring
spt-platform/app/Http/Controllers/Admin/LessonController.php - PPTX text extraction
spt-platform/app/Services/PptxTextExtractor.php - Lesson image processing
spt-platform/app/Services/LessonImageProcessor.php - Course and lesson records
spt-platform/app/Models - Private file storage
spt-platform/app/Http/Controllers/Admin/ModuleController.php
Trainee learning
- Course catalog and enrollment
spt-platform/app/Http/Controllers/CourseController.php - Sequential lesson viewer
spt-platform/app/Http/Controllers/LessonViewController.php - Lesson quizzes
spt-platform/app/Http/Controllers/LessonQuizController.php
Administration and oversight
- Trainee monitoring
spt-platform/app/Http/Controllers/Supervisor/MonitoringController.php - Admin dashboards and analytics
spt-platform/app/Http/Controllers/Admin
Assessment and credentials
- Final exams
spt-platform/app/Http/Controllers/ExamController.php - Exam attempts and settings
spt-platform/app/Models/ExamAttempt.php - Certificate issuance
spt-platform/app/Http/Controllers/CertificateController.php - Certificate records
spt-platform/app/Models/Certificate.php
Other components
- Trainee
- Admin
- Supervisor
- AWS S3
- TiDB Cloud
Connections 28
- Trainee → Registration and login: registers or signs in
spt-platform/app/Http/Controllers/Auth/RegisteredUserController.php - Registration and login → User accounts: creates account
spt-platform/app/Http/Controllers/Auth/RegisteredUserController.php - Trainee → Course catalog and enrollment: browses and enrolls
- Course catalog and enrollment → Course and lesson records: reads course data
spt-platform/app/Http/Controllers/CourseController.php - Course management → Course and lesson records: manages courses
spt-platform/app/Http/Controllers/Admin/CourseController.php - Admin → Course management: manages courses
- Course management → Module management: opens course modules
- Admin → Module management: manages modules
- Module management → Course and lesson records: creates modules
spt-platform/app/Http/Controllers/Admin/ModuleController.php - Admin → Lesson authoring: authors lessons
- Lesson authoring → PPTX text extraction: extracts slide text
spt-platform/app/Http/Controllers/Admin/LessonController.php - Lesson authoring → Lesson image processing: processes images
spt-platform/app/Http/Controllers/Admin/LessonController.php - Lesson authoring → Course and lesson records: stores lesson content
spt-platform/app/Http/Controllers/Admin/LessonController.php - Module management → Private file storage: stores module files
spt-platform/app/Http/Controllers/Admin/ModuleController.php - Private file storage → AWS S3: stores and streams files
- Trainee → Sequential lesson viewer: studies lessons
- Sequential lesson viewer → Lesson quizzes: requires quiz completion
- Trainee → Final exams: takes final exam
- Final exams → Exam attempts and settings: records graded attempt
spt-platform/app/Http/Controllers/ExamController.php - Final exams → Certificate issuance: issues on passing
spt-platform/app/Http/Controllers/ExamController.php - Certificate issuance → Certificate records: creates certificate record
spt-platform/app/Http/Controllers/CertificateController.php - Certificate issuance → AWS S3: stores certificate PDF
- Trainee → Certificate issuance: views or downloads
- Admin → Admin dashboards and analytics: reviews platform activity
- Supervisor → Trainee monitoring: monitors trainees
- Trainee monitoring → User accounts: reads trainee progress
spt-platform/app/Http/Controllers/Supervisor/MonitoringController.php - Course and lesson records → TiDB Cloud: persists application data
- Role authorization → Registration and login: protects role routes