How 4akyz/web-food-drink works
This is a Laravel food-ordering application with customer, employee, and admin surfaces. Its domain spans product discovery, cart and checkout, order fulfillment, payment, inventory, and customer support such as reviews and complaints; staff and admins also manage catalog, promotions, and operations. The graph emphasizes the source-index-supported customer and operations services, plus documented integrations. Many controllers and routes are listed but unsampled, so their wiring is not inferred.
Main entry points: PaymentService.php Payment processing · ReviewController.php Review replies · NotificationService.php Notification delivery · AuditLogger.php Audit logging
Components 27
Customer commerce
- Browse products
app/Http/Controllers/CustomerPageController.php - Customer cart
app/Services/CustomerCart.php - Checkout
app/Services/CustomerCheckout.php
Staff operations
- Review replies
app/Http/Controllers/Employee/ReviewController.php - Inventory management
app/Http/Controllers/Admin/InventoryController.php - Product management
app/Http/Controllers/Admin/ProductController.php - Payment review
app/Http/Controllers/Employee/PaymentController.php - Coupons and deals
app/Services/CouponService.php - Complaint handling
app/Services/ComplaintService.php - Reports
app/Services/ReportService.php
Commerce domain
- Product catalog
app/Models/Product.php - Categories
app/Models/Category.php - Orders
app/Models/Order.php - Payment records
app/Models/Payment.php - Inventory
app/Models/Inventory.php - Notifications
app/Models/Notification.php - Reviews
app/Models/Review.php
Application services
- Order status
app/Services/OrderStatusService.php - Payment processing
app/Services/PaymentService.php - Payment gateways
app/Services/MomoService.php - VNPay integration
app/Services/VnpayService.php - Inventory deduction
app/Services/InventoryDeductionService.php - Notification delivery
app/Services/NotificationService.php - Audit logging
app/Services/AuditLogger.php
Other components
- Customer
- Employee
- Administrator
Connections 24
- Browse products → Product catalog: queries
app/Http/Controllers/CustomerPageController.php - Browse products → Categories: queries
app/Http/Controllers/CustomerPageController.php - Customer → Browse products: browses
- Customer → Customer cart: manages cart
- Customer → Checkout: checks out
- Checkout → Orders: creates order
- Review replies → Reviews: reads reviews
app/Http/Controllers/Employee/ReviewController.php - Review replies → Notification delivery: sends reply notice
app/Http/Controllers/Employee/ReviewController.php - Review replies → Audit logging: records action
app/Http/Controllers/Employee/ReviewController.php - Employee → Review replies: replies
- Administrator → Inventory management: manages stock
- Administrator → Product management: manages catalog
- Inventory management → Inventory: updates
app/Http/Controllers/Admin/InventoryController.php - Inventory management → Audit logging: records action
app/Http/Controllers/Admin/InventoryController.php - Product management → Product catalog: manages
app/Http/Controllers/Admin/ProductController.php - Payment review → Payment processing: confirms payments
app/Http/Controllers/Employee/PaymentController.php - Payment gateways → Payment processing: settles gateway payment
app/Services/MomoService.php - VNPay integration → Payment processing: settles gateway payment
app/Services/VnpayService.php - Order status → Inventory deduction: restocks on cancellation
app/Services/OrderStatusService.php - Order status → Audit logging: records transitions
app/Services/OrderStatusService.php - Order status → Notification delivery: notifies customer
app/Services/OrderStatusService.php - Payment processing → Audit logging: records payment
app/Services/PaymentService.php - Payment processing → Notification delivery: sends payment notices
app/Services/PaymentService.php - Notification delivery → Notifications: persists notices
app/Services/NotificationService.php