How mandlamthethwa/one-stop works
This is a Laravel storefront with product browsing and administration, user registration, a per-user cart, and PayGate checkout. The main purchase flow runs from web routes through the payment controller: it reads cart and product data, initiates an external payment, verifies the callback, records transaction status, and sends purchase emails. Product and authentication paths are also shown. The excerpts establish these controller actions and calls; unsampled route details and framework wiring limit some connections, so uncertain links are omitted.
Main entry points: PaymentController.php Payment controller · web.php Web routes · ProductController.php Catalog controller · RegisterController.php Registration
Components 17
Web and identity
- Web routes
routes/web.php - HTTP kernel
app/Http/Kernel.php - Route provider
app/Providers/RouteServiceProvider.php - Registration
app/Http/Controllers/Auth/RegisterController.php - User account
app/Models/User.php
Product catalog
- Catalog controller
app/Http/Controllers/ProductController.php - Product model
app/Models/Product.php - Product views
resources/views/products/index.blade.php
Cart and checkout
- Payment controller
app/Http/Controllers/PaymentController.php - Cart model
app/Models/Cart.php - Transaction model
app/Models/Transaction.php - Payment views
resources/views/payment/form.blade.php
Purchase messaging
- Purchase notification
app/Notifications/PurchasedItemsNotification.php - Admin purchase email
app/Mail/AdminPurchaseNotification.php - User purchase email
app/Mail/UserPurchaseNotification.php
Other components
- Shopper
- PayGate
Connections 16
- Shopper → Web routes: browses
routes/web.php - Web routes → Catalog controller: routes to
routes/web.php - Web routes → Payment controller: routes to
routes/web.php - Shopper → Registration: registers
- Registration → User account: creates account
app/Http/Controllers/Auth/RegisterController.php - Catalog controller → Product model: reads and saves
app/Http/Controllers/ProductController.php - Catalog controller → Product views: renders
app/Http/Controllers/ProductController.php - Payment controller → Cart model: reads and updates
app/Http/Controllers/PaymentController.php - Payment controller → Product model: reads prices
app/Http/Controllers/PaymentController.php - Payment controller → Transaction model: records status
app/Http/Controllers/PaymentController.php - Payment controller → PayGate: initiates and verifies
app/Http/Controllers/PaymentController.php - PayGate → Payment controller: sends callback
app/Http/Controllers/PaymentController.php - Payment controller → Payment views: renders
app/Http/Controllers/PaymentController.php - Payment controller → Admin purchase email: sends
app/Http/Controllers/PaymentController.php - Payment controller → User purchase email: sends
app/Http/Controllers/PaymentController.php - HTTP kernel → Route provider: registers routes