How yongmingja/school2 works
Harmony is a music-school management application for administrators, teachers, students, and parents. Its main workflow is managing students and lessons, recording attendance and progress reports, and handling invoices and payments; role-specific dashboards and calendar/scheduling support that work. Laravel controllers route requests and render Inertia pages, with Eloquent models representing the domain. The source index and excerpts support several controller-to-page and model relationships, but many listed capabilities were not sampled, so their internal links are omitted rather than inferred.
Main entry points: web.php Web routes · Student.php People records · Lesson.php Lesson records · LessonReportController.php Teacher reporting
Components 23
Access and dashboards
- Web routes
routes/web.php - Authentication
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Admin dashboard
app/Http/Controllers/Admin/DashboardController.php - Role dashboards
app/Http/Controllers/Parent/DashboardController.php
School operations
- Student management
app/Http/Controllers/Admin/StudentController.php - Student pages
resources/js/pages/Admin/Students/Index.tsx - Staff and guardians
app/Http/Controllers/Admin/TeacherController.php - Calendar management
app/Http/Controllers/Admin/CalendarEventController.php
Lessons and reports
- Lesson management
app/Http/Controllers/Admin/LessonController.php - Teacher schedule
app/Http/Controllers/Teacher/ScheduleController.php - Teacher reporting
app/Http/Controllers/Teacher/LessonReportController.php - Report form
resources/js/pages/Teacher/LessonReportForm.tsx - Lesson reminders
app/Console/Commands/SendLessonReminders.php
Billing
- Payment management
app/Http/Controllers/Admin/PaymentController.php - Overdue invoices
app/Console/Commands/FlagOverdueInvoices.php
Domain records
- School records
app/Models/AcademicYear.php - People records
app/Models/Student.php - Lesson records
app/Models/Lesson.php - Invoice and payment records
app/Models/Invoice.php
Other components
- Administrator
- Teacher
- Student
- Parent / guardian
Connections 25
- Administrator → Web routes: uses
routes/web.php - Teacher → Web routes: uses
routes/web.php - Student → Web routes: uses
routes/web.php - Parent / guardian → Web routes: uses
routes/web.php - Web routes → Authentication: routes to
routes/web.php - Web routes → Student management: routes to
routes/web.php - Web routes → Staff and guardians: routes to
routes/web.php - Web routes → Lesson management: routes to
routes/web.php - Web routes → Payment management: routes to
routes/web.php - Web routes → Calendar management: routes to
routes/web.php - Web routes → Teacher schedule: routes to
routes/web.php - Student management → Student pages: renders
app/Http/Controllers/Admin/StudentController.php - Student management → People records: reads and writes
app/Http/Controllers/Admin/StudentController.php - Student management → School records: reads
app/Http/Controllers/Admin/StudentController.php - Lesson management → Lesson records: reads
app/Http/Controllers/Admin/LessonController.php - Teacher reporting → Report form: renders
app/Http/Controllers/Teacher/LessonReportController.php - Teacher reporting → Lesson records: loads lesson
app/Http/Controllers/Teacher/LessonReportController.php - Teacher reporting → People records: loads students
app/Http/Controllers/Teacher/LessonReportController.php - Teacher reporting → Lesson records: updates status
app/Http/Controllers/Teacher/LessonReportController.php - Payment management → Invoice and payment records: reads and writes
app/Http/Controllers/Admin/PaymentController.php - People records → Lesson records: relates lessons
app/Models/Student.php - People records → Invoice and payment records: relates invoices
app/Models/Student.php - Lesson records → School records: belongs to semester
app/Models/Lesson.php - Invoice and payment records → People records: belongs to student
app/Models/Invoice.php - Invoice and payment records → School records: belongs to semester
app/Models/Invoice.php