HR & Payroll App — Mobile API
Employee Self-Service: Payslips, Leave, Expenses & Approvals

Employee self-service API for an HR and payroll system. Employees view and download payslips, apply for leave, submit expense claims and read company announcements. Managers approve requests from the same app, and HR keeps full records.
Architecture & System Design
Requests such as leave and expenses follow a configurable approval chain based on the employee's department and manager. Payslips are generated as PDFs by queued jobs after payroll runs and served through signed, expiring links because they contain sensitive salary data.
- Configurable approval chains per department
- Payslip PDFs generated in queued jobs after each payroll run
- Signed, expiring download links for sensitive documents
- Role-based access for employees, managers and HR
Engineering Challenges
Protecting Salary Data
Payslips are highly sensitive and must never be accessible through guessable URLs.
Stored PDFs privately and issued short-lived signed URLs only after verifying the requester owns the payslip or has an HR role.
Employees can download their payslips easily without exposing anyone else's.
Different Approval Rules per Team
Some departments needed one approver, others needed a manager and then HR.
Modelled approval chains as data, so each request type and department defines its own steps without code changes.
New approval rules can be set up by configuration instead of development work.
Core Features
Payslips
Monthly payslips with earnings and deductions, downloadable as PDF.
Clean Code
1public function download(Request $request, Payslip $payslip): JsonResponse2{3 $this->authorize('view', $payslip);45 $url = Storage::disk('private')->temporaryUrl(6 $payslip->pdf_path,7 now()->addMinutes(5)8 );910 return response()->json(['url' => $url]);11}Want something like this for your business?
I design and build full stack products end to end. Tell me about your idea and I'll get back to you with a plan.