Excited to share my recent project: Event Booking System built with Laravel!
This project is a full-featured API for managing events and bookings, with:
User Authentication & Role-Based Access Control using Laravel Sanctum & roles (administrator, superadministrator, and regular users).
️ Admin Panel APIs to create, update, delete, and list events securely.
User APIs for browsing events, booking events, viewing booked events, and canceling bookings.
Clean API responses structured with custom resources (EventResource, BookingResource) for clear and consistent JSON output.
Event-Driven Email Notifications:
I implemented Event Listeners to enhance user experience by:
Sending a welcome email automatically when a user logs in for the first time.
Sending detailed event booking confirmation emails right after booking an event.
This approach leverages Laravel's powerful event system to decouple email logic from the controllers, making the code cleaner and more maintainable.