How ahsan0110/udhaar-wheels works
Udhaar Wheels is a peer-to-peer car-rental marketplace. Guests browse listings, request and pay for bookings, sign agreements, complete trip handovers, and review; hosts list cars, manage bookings, and request payouts, while administrators moderate users/listings, disputes, and payouts. The Vue SPA calls a Laravel REST API, whose services coordinate booking, payment, and wallet operations backed by MySQL. Real-time chat and notifications use Pusher, and transactional email uses Brevo. Some branches are based on README capabilities because their implementation was not sampled; edges are limited to documented or indexed relationships.
Main entry points: BookingService.php Booking lifecycle · Pages Role dashboards · api.php Laravel REST API · BookingController.php Booking endpoints
Components 27
Web experience
- Vue application
Frontend/src/main.js - Role dashboards
Frontend/src/Pages - API client
Frontend/src/services/apiClient.js - Laravel REST API
Backend/routes/api.php
Marketplace and trips
- Car listings
Backend/app/Models/Car.php - Booking endpoints
Backend/app/Http/Controllers/Guest/BookingController.php - Host booking actions
Backend/app/Http/Controllers/Host/HostBookingController.php - Booking lifecycle
Backend/app/Services/BookingService.php - Bookings and agreements
Backend/app/Models/Booking.php - Trip handover
Backend/app/Services/HandoverInspectionService.php - Reviews
Backend/app/Http/Controllers/ReviewController.php - Review records
Backend/app/Models/Review.php - Moderation and disputes
Backend/app/Http/Controllers/Admin
Payments and payouts
- Stripe payments
Backend/app/Services/StripeService.php - Stripe
- Wallet and payouts
Backend/app/Services/WalletService.php - Payout administration
Backend/app/Http/Controllers/Admin/AdminPayoutController.php - Wallet transactions
Backend/app/Models/WalletTransaction.php
Identity and communications
- Authentication
Backend/app/Services/AuthService.php - User accounts
Backend/app/Models/User.php - Chat and messaging
Backend/app/Services/ChatService.php - Pusher real-time
- Email notifications
Backend/app/Services/NotificationMailService.php - Brevo email
Other components
- Guest and host
- Super admin
- MySQL
Connections 30
- Guest and host → Vue application: uses
README.md - Super admin → Vue application: uses
README.md - Vue application → Role dashboards: renders
Frontend/src/main.js - Role dashboards → API client: requests
Frontend/src/services/apiClient.js - API client → Laravel REST API: calls REST
README.md - Laravel REST API → Authentication: authenticates
- Authentication → User accounts: uses
Backend/app/Services/AuthService.php - Laravel REST API → Booking endpoints: routes requests
- Booking endpoints → Booking lifecycle: delegates booking
Backend/app/Http/Controllers/Guest/BookingController.php - Host booking actions → Booking lifecycle: delegates booking
Backend/app/Http/Controllers/Host/HostBookingController.php - Booking lifecycle → Bookings and agreements: updates lifecycle
Backend/app/Services/BookingService.php - Booking lifecycle → Stripe payments: uses payments
Backend/app/Services/BookingService.php - Booking endpoints → Stripe payments: verifies intent
Backend/app/Http/Controllers/Guest/BookingController.php - Stripe payments → Stripe: charges and authorizes
README.md - Booking lifecycle → Trip handover: uses inspections
Backend/app/Services/BookingService.php - Booking lifecycle → Email notifications: sends trip mail
Backend/app/Services/BookingService.php - Reviews → Review records: creates and queries
Backend/app/Http/Controllers/ReviewController.php - Reviews → User accounts: notifies reviewer
Backend/app/Http/Controllers/ReviewController.php - Role dashboards → Chat and messaging: uses messaging
- Chat and messaging → Pusher real-time: broadcasts
README.md - Email notifications → Brevo email: dispatches email
README.md - Payout administration → Wallet and payouts: recalculates balances
Backend/app/Http/Controllers/Admin/AdminPayoutController.php - Payout administration → Wallet transactions: releases transactions
Backend/app/Http/Controllers/Admin/AdminPayoutController.php - Wallet and payouts → Wallet transactions: records earnings
Backend/app/Services/WalletService.php - Super admin → Moderation and disputes: moderates
README.md - Super admin → Payout administration: reviews payouts
Backend/app/Http/Controllers/Admin/AdminPayoutController.php - Bookings and agreements → MySQL: persists
README.md - Car listings → MySQL: persists
README.md - User accounts → MySQL: persists
README.md - Wallet transactions → MySQL: persists
README.md