Back to projects

Case study · Full-stack web app

Volunteer Village

A Laravel platform that connects students, schools, and organizations around volunteer work. Organizations post opportunities, students log their hours, teachers verify them, and a leaderboard keeps everyone motivated.

My role
Repo owner, authentication & admin features
Team
3 developers
Timeline
Feb – May 2025
Stack
PHP 8, Laravel 10, Livewire, Blade, Tailwind CSS, MySQL

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.

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.

The life of a volunteer hour

  1. 1

    Submit

    A student logs hours and uploads a photo.

  2. 2

    Pending

    The hours wait in the teacher's review queue.

  3. 3

    Review

    The teacher approves, or rejects with a reason.

  4. 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.

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.

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.

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.

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.