Social Marketplace & Service Booking Platform
A comprehensive backend API for a social marketplace platform combining social networking, vendor management, service bookings, and personal productivity tools. Features real-time messaging via Pusher WebSockets, multi-role authentication, and a flexible appointment scheduling system. Built with Laravel 10 and Sanctum for API authentication. Supports vendors with employee management, product/offer listings, ratings and reviews. Includes user productivity features like todo lists, shopping lists, and monthly budget tracking.
Major features and technical achievements.
Complete social platform functionality
Multi-vendor product and service listings
Direct messaging with WebSocket delivery
Appointment and reservation management
Personal organization features
Sanctum-based API authentication
Architectural patterns and design decisions.
Laravel Sanctum + Guards
Separate authentication flows for Users, Vendors, and Admins. Token-based API authentication with role-specific permissions and middleware protection.
Pusher WebSockets
Real-time message delivery and social interaction notifications. NewMessage and StatusLiked events broadcast to connected clients for instant updates.
MorphTo/MorphMany
Likes and comments work across multiple content types (posts, offers, publications). Single table design reduces complexity while maintaining flexibility.
RESTful API Design
Standard CRUD operations across 25+ endpoints. Consistent response formats with proper HTTP status codes and validation error handling.