Laravel 8 customer-facing marketplace storefront with full Arabic/English bilingual support, Google/Facebook social login via Laravel Socialite, Twilio SMS OTP, Pusher real-time notifications, and a session-cart checkout flow.
| Package | Version | Purpose |
|---|---|---|
laravel/framework |
^8.40 | Core framework |
laravel/socialite |
^5.2 | Google + Facebook OAuth login |
twilio/sdk |
^6.25 | SMS OTP verification |
intervention/image |
^2.6 | Image processing |
maatwebsite/excel |
^3.1 | Data export |
barryvdh/laravel-dompdf |
^0.9.0 | PDF generation |
laravel/ui |
^3.0 | Auth UI scaffolding |
mashape/unirest-php |
^3.0 | API proxy calls |
Same API-proxy pattern — all business logic lives in ecommerence-api. This app manages locale routing, session state, and rendering.
Routes use a locale prefix (/{locale}/) — locale is stored in session and switched via GET /locale.
| Module | Routes |
|---|---|
| Locale | GET /locale — switch language, stores in session, redirects |
| Home | GET /{locale}/ |
| Products | GET /{locale}/product/{slug}, GET /{locale}/search, POST /search |
| Auth (guest) | Login form, register form, social OAuth (GET oauth/{driver}, GET oauth/{driver}/callback) |
| Auth | Logout, email verification, password reset |
| Cart (auth) | GET /{locale}/cart, add/update quantity/remove items |
| Wishlist (auth) | GET /{locale}/wishlist, add/remove |
| Checkout (auth) | GET /{locale}/checkout, POST /order |
- Bilingual (EN/AR) — locale prefix routing, RTL support for Arabic
- Social OAuth — Google + Facebook login via Socialite (
redirectToProvider/handleProviderCallback) - Twilio SMS OTP — phone number verification on registration
- Pusher notifications — real-time order status updates in browser
- Slug-based product URLs — SEO-friendly product pages
- Session cart — add, update quantity, remove, checkout
- Email verification —
Auth::routes(['verify' => true])
Shares the same MySQL database as ecommerence-vendor (canonical schema of 22 tables).
| Repo | Purpose |
|---|---|
ecommerence-api |
Laravel 8 REST API backend |
ecommerence-admin |
Super-admin management panel |
ecommerence-vendor |
Vendor self-service portal |