How abdjaliltoumi/cabinet-medical works
This is a Laravel medical-cabinet application for patients, doctors, secretaries, and administrators. The main patient workflow is to choose a speciality, doctor, and available date, then submit an appointment request; doctors can record consultations, and patients can view medical files and prescriptions. The graph also covers role-based access, cabinet and doctor scheduling, administration, and contact messaging. Relationships are limited to those shown in excerpts, the source index, or the README; several controller details and the contact workflow were not sampled.
Main entry points: web.php Web routes · AppointmentController.php Appointment booking · DoctorController.php Doctor workflows · Patient.php Patient profiles
Components 20
Access and navigation
- Web routes
routes/web.php - Authentication
app/Http/Controllers/Auth - Role access
app/Http/Middleware/CheckRole.php - User accounts
app/Models/User.php
Appointments and schedules
- Appointment booking
app/Http/Controllers/AppointmentController.php - Doctor availability
app/Models/Availability.php - Cabinet schedule
app/Models/CabinetSchedule.php - Appointment records
app/Models/Appointment.php
Clinical records
- Doctor workflows
app/Http/Controllers/DoctorController.php - Doctor profiles
app/Models/Doctor.php - Consultations
app/Models/Consultation.php - Prescriptions
app/Models/Prescription.php - Patient records
app/Http/Controllers/PatientController.php - Patient profiles
app/Models/Patient.php - Medical files
app/Models/MedicalFile.php
Cabinet operations
- Admin dashboard
app/Http/Controllers/AdminDashboardController.php - Schedule management
app/Http/Controllers/CabinetScheduleController.php - Activity logs
app/Models/LogAction.php - Contact messages
app/Http/Controllers/ContactController.php
Other components
- Patient
Connections 36
- Patient → Web routes: requests pages
routes/web.php - Web routes → Authentication: routes to
routes/web.php - Web routes → Appointment booking: routes to
routes/web.php - Web routes → Doctor workflows: routes to
routes/web.php - Web routes → Patient records: routes to
routes/web.php - Web routes → Admin dashboard: routes to
routes/web.php - Web routes → Schedule management: routes to
routes/web.php - Web routes → Contact messages: routes to
routes/web.php - Web routes → Role access: applies role checks
- Appointment booking → Appointment records: reads and writes
app/Http/Controllers/AppointmentController.php - Appointment booking → Doctor availability: checks capacity
app/Http/Controllers/AppointmentController.php - Appointment booking → Cabinet schedule: checks booking window
app/Http/Controllers/AppointmentController.php - Appointment booking → Doctor profiles: looks up doctors
app/Http/Controllers/AppointmentController.php - Appointment booking → Patient profiles: loads patients
app/Http/Controllers/AppointmentController.php - Doctor workflows → Appointment records: loads appointments
app/Http/Controllers/DoctorController.php - Doctor workflows → Consultations: creates consultation
app/Http/Controllers/DoctorController.php - Doctor workflows → Doctor availability: manages availability
app/Http/Controllers/DoctorController.php - Doctor workflows → Cabinet schedule: reads schedule
app/Http/Controllers/DoctorController.php - Patient records → Patient profiles: loads patient records
app/Http/Controllers/PatientController.php - Patient records → Medical files: loads medical file
app/Http/Controllers/PatientController.php - Patient records → Appointment records: loads appointments
app/Http/Controllers/PatientController.php - Consultations → Prescriptions: has prescription
app/Models/Consultation.php - Appointment records → Consultations: has consultation
app/Models/Appointment.php - Patient profiles → Medical files: has medical file
app/Models/Patient.php - Patient profiles → Appointment records: has appointments
app/Models/Patient.php - Doctor profiles → Doctor availability: has availabilities
app/Models/Doctor.php - Doctor availability → Cabinet schedule: belongs to schedule
app/Models/Availability.php - Schedule management → Cabinet schedule: updates schedule
app/Http/Controllers/CabinetScheduleController.php - Admin dashboard → Appointment records: summarizes appointments
app/Http/Controllers/AdminDashboardController.php - Admin dashboard → Doctor profiles: summarizes doctors
app/Http/Controllers/AdminDashboardController.php - Admin dashboard → Patient profiles: summarizes patients
app/Http/Controllers/AdminDashboardController.php - Admin dashboard → Activity logs: reads activity
app/Http/Controllers/AdminDashboardController.php - User accounts → Patient profiles: has patient profile
app/Models/User.php - User accounts → Doctor profiles: has doctor profile
app/Models/User.php - Doctor workflows → Activity logs: records actions
app/Http/Controllers/DoctorController.php - Appointment booking → Activity logs: records changes
app/Http/Controllers/AppointmentController.php