How rafiadnan0666/absen-laravel works
ABS is an employee-management web application with employee, HR, and admin workflows, plus a Sanctum-authenticated mobile API. Employees submit GPS-checked attendance, leave requests, and reimbursement claims, and view payroll and announcements; HR reviews attendance and approvals, while admins configure staff, schedules, locations, policies, and payroll. The graph groups the main domain stages and shared persistence/access-control layer. Relationships are based on the supplied excerpts and README; unsampled routes and controller wiring are not asserted.
Main entry points: User.php User and relationships · AttendanceController.php GPS attendance · PayrollController.php Payroll calculation · Attendance.php Attendance records
Components 20
Identity and access
- Web authentication
app/Http/Controllers/Auth/RegisteredUserController.php - Roles and policies
app/Providers/AuthServiceProvider.php
Workforce operations
- Staff and organization
app/Http/Controllers/Admin/UserController.php - Shifts and locations
app/Http/Controllers/Admin/UserShiftController.php - GPS attendance
app/Http/Controllers/Employee/AttendanceController.php - Leave requests
app/Http/Controllers/Employee/LeaveController.php - Leave review
app/Http/Controllers/HR/LeaveController.php - Announcements
app/Http/Controllers/Employee/AnnouncementController.php
Approvals and payroll
- Expense claims
app/Http/Controllers/Employee/ReimbursementController.php - Claim approval
app/Http/Controllers/HR/ReimbursementController.php - Payroll calculation
app/Http/Controllers/Admin/PayrollController.php - Payroll views
app/Http/Controllers/Employee/PayrollController.php
API and shared data
- Attendance records
app/Models/Attendance.php - Claim records
app/Models/Reimbursement.php - Sanctum REST API
app/Http/Controllers/Api - User and relationships
app/Models/User.php - Payroll records
app/Models/Payroll.php
Other components
- Employee
- Admin / HR
- MySQL database
Connections 25
- Employee → Web authentication: registers
app/Http/Controllers/Auth/RegisteredUserController.php - Web authentication → User and relationships: creates user
app/Http/Controllers/Auth/RegisteredUserController.php - Admin / HR → Staff and organization: manages staff
README.md - Admin / HR → Shifts and locations: configures shifts
README.md - Employee → GPS attendance: checks in/out
README.md - GPS attendance → Attendance records: creates and updates
app/Http/Controllers/Employee/AttendanceController.php - GPS attendance → User and relationships: uses user shifts
app/Http/Controllers/Employee/AttendanceController.php - Employee → Leave requests: requests leave
README.md - Admin / HR → Leave review: reviews requests
README.md - Employee → Expense claims: submits claim
README.md - Admin / HR → Claim approval: approves claims
README.md - Claim approval → Claim records: reviews records
app/Http/Controllers/HR/ReimbursementController.php - Admin / HR → Payroll calculation: manages payroll
README.md - Payroll calculation → Attendance records: reads attendance
app/Http/Controllers/Admin/PayrollController.php - Payroll calculation → Payroll records: creates payroll
app/Http/Controllers/Admin/PayrollController.php - Employee → Payroll views: views pay
README.md - Payroll views → Payroll records: reads payroll
- Employee → Announcements: views updates
README.md - Employee → Sanctum REST API: uses mobile API
README.md - Sanctum REST API → User and relationships: serves user resources
app/Http/Controllers/Api/UserController.php - Roles and policies → User and relationships: checks roles
app/Providers/AuthServiceProvider.php - User and relationships → MySQL database: persists
- Attendance records → MySQL database: persists
- Claim records → MySQL database: persists
- Payroll records → MySQL database: persists