Building the backend for a golf coaching marketplace in Laravel
A golf coaching app connects players with coaches for lessons, including virtual lessons. I built its Laravel 10 backend: the REST API behind the mobile app, lesson bookings, a coach application and paid verification flow, Stripe payments, Firebase notifications and the admin dashboard.
A marketplace with two kinds of user
Players need to find a coach, book lessons and buy coaching packages. Coaches need to be checked before they can teach. Both sides use the same mobile app, so one backend had to handle bookings, verification, payments and notifications, plus an admin panel to run the business.
The API, payments and admin
- Lesson bookings: a booking API for lessons, including bookings across multiple dates and a separate flow for virtual lessons.
- Coach applications and verification: a player applies to become a coach, buys a coach plan, uploads certificates and waits for review. Admins approve or reject each application, and the verification fee can be set per plan.
- Stripe payments: subscriptions, analysis packages and tutorial purchases paid through Stripe.
- Coaching tools: analysis packages, gift challenges, player performance tracking, game scoring, a reflection-wheel self-assessment, tutorials and team chat.
- Notifications and email: Firebase push notifications for verification and payment events, plus email for verification and password resets.
- Subscriptions: a scheduled job that expires lapsed subscriptions automatically.
- Admin dashboard: coach applications, a revenue centre, data exports and bulk actions.
Tech stack
- Laravel 10
- PHP 8
- REST API
- Stripe
- Firebase
- Cron
- Admin dashboard