How rehan-sikalgar313/problem-x works
This appears to be a Laravel civic-complaint portal: users register with email OTP verification, sign in, submit and track complaints, while admins review complaints and update their status. The main flow is routed through routes/web.php to controllers and views, with Eloquent models representing users, temporary OTP records, and complaints. The source excerpts support the authentication, complaint submission, tracking, and admin-management links. Department notification code is present, but occurs after a return in the shown complaint handler, so it is not shown as an active workflow.
Main entry points: web.php Web routes · AuthController.php Authentication · AdminComplaintController.php Complaint administration · Complaint.php Complaint records
Components 20
Web entry
- Laravel entry
public/index.php - Web routes
routes/web.php - Base controller
app/Http/Controllers/Controller.php
Account access
- Authentication
app/Http/Controllers/AuthController.php - Registration OTP
app/Models/RegistrationOtp.php - User account
app/Models/User.php - OTP email
app/Mail/VerifyOtpMail.php - Registration form
resources/views/register.blade.php - OTP verification
resources/views/verify-otp.blade.php - Login form
resources/views/login.blade.php
Complaint handling
- Complaint submission
app/Http/Controllers/ComplaintController.php - Complaint records
app/Models/Complaint.php - Department notice
app/Mail/ComplaintDepartmentMail.php - Report form
resources/views/report.blade.php - Dashboard
resources/views/dashboard.blade.php - Complaint tracking
resources/views/track.blade.php
Administration
- Admin access check
app/Http/Middleware/AdminMiddleware.php - Complaint administration
app/Http/Controllers/AdminComplaintController.php - Admin complaint list
resources/views/admin/complaints.blade.php
Other components
- Portal user
Connections 19
- Laravel entry → Web routes: loads routes
public/index.php - Portal user → Web routes: requests pages
routes/web.php - Web routes → Registration form: serves form
routes/web.php - Web routes → OTP verification: serves form
routes/web.php - Web routes → Login form: serves form
routes/web.php - Web routes → Authentication: routes auth
routes/web.php - Authentication → Registration OTP: creates and checks
app/Http/Controllers/AuthController.php - Authentication → User account: creates account
app/Http/Controllers/AuthController.php - Authentication → OTP email: sends OTP with
app/Http/Controllers/AuthController.php - Web routes → Report form: serves form
routes/web.php - Web routes → Complaint submission: routes submission
routes/web.php - Complaint submission → Complaint records: creates complaint
app/Http/Controllers/ComplaintController.php - Web routes → Dashboard: serves dashboard
routes/web.php - Web routes → Complaint tracking: serves tracking
routes/web.php - Web routes → Complaint records: queries user complaints
routes/web.php - Web routes → Admin access check: guards admin routes
routes/web.php - Web routes → Complaint administration: routes admin actions
routes/web.php - Complaint administration → Complaint records: reads and updates
app/Http/Controllers/AdminComplaintController.php - Complaint administration → Admin complaint list: renders list
app/Http/Controllers/AdminComplaintController.php