01 / The goal
One place for volunteer hours
Students who need volunteer hours have to find opportunities, keep track of the time they put in, and then get an adult to sign off on it. We wanted a single app where every part of that happens: organizations post the work, students record it, and teachers confirm it, with nothing lost along the way.
02 / Who uses it
Four roles, four experiences
Each account has a role, and the app shows each role its own dashboard and only the actions it is allowed to take.
-
Student
Browses the opportunity board, submits hours with a photo as proof, tracks pending hours, and climbs the leaderboard.
-
Teacher
Reviews submitted hours and approves them, or rejects them with a reason the student can see.
-
Organization
Creates, edits, and removes the volunteer opportunities students see on the board.
-
Admin
Signs in through a separate admin portal to manage users and approve the schools that join the platform.
03 / How it works
The life of a volunteer hour
- 1
Submit
A student logs hours and uploads a photo.
- 2
Pending
The hours wait in the teacher's review queue.
- 3
Review
The teacher approves, or rejects with a reason.
- 4
Leaderboard
Approved hours count toward the monthly leaderboard.
The leaderboard resets at the start of each month with a custom Artisan command
(leaderboard:reset), so every student gets a fresh shot at the top spot.
Users can also message each other directly inside the app.
04 / My role
What I built
I created the repository and set up the project, then owned these parts of the app:
- Database foundation. Wrote the first database migrations that the rest of the team built on.
- Registration and login. Built the sign-up and login pages and the logic that creates each account with the right role.
- Admin portal. Built the separate admin login, admin permissions, and user management.
- School approval. New schools wait for an admin to approve them before they appear to everyone else.
- Integration. Reviewed and merged pull requests from the team's feature branches into the main branch.
05 / The hard part
Giving admins their own front door
Admins are stored in their own table with their own credentials, separate from students, teachers, and organizations. That meant the normal login could not see them. For a while the rest of the app worked while the admin login did not, and my commit note at the time was "have to fix the admin login but everything else works so far."
The fix was to treat admins as a separate kind of user. I gave them their own Laravel authentication guard and login page, and added middleware that sends anyone who is not signed in through that guard back to the admin login. Everyone else is protected by a role check that only lets the listed roles through:
public function handle(Request $request, Closure $next, ...$roles)
{
if (!$request->user() || !in_array($request->user()->role, $roles)) {
abort(403, 'Unauthorized action.');
}
return $next($request);
}
A route can then say exactly who is allowed in, for example
role:teacher,admin on the page where hours are approved.
06 / Working as a team
Three developers, one codebase
- 358commits
- 57pull requests
- 4months
Each of us worked on our own branch and opened a pull request when a feature was ready. With three people merging into one main branch, the work depended on pulling changes often, keeping pull requests small, and fixing merge conflicts early instead of letting them pile up.
07 / What's next
Where I'd take it
- A live demo with a ready-made account for each role, so anyone can try every view.
- Automated tests for the role checks, so a change can never let the wrong role into a page.
- A real README with setup steps and screenshots.