How lohahola/tubes-pec works
Arbyte is a Laravel e-commerce application. Customers browse products, manage accounts and shipping details, build a cart, check out into reserved-stock orders, pay through Midtrans, then track orders and submit eligible reviews; admins manage catalog, customers, orders, and homepage promotions. The graph emphasizes controllers and services shown in the source index, plus documented capabilities whose specific implementation details were not sampled. Region data is documented as local JSON; some route-to-controller links and feature links rely on the README or routes index.
Main entry points: web.php Web routes · Product.php Product catalog · PaymentController.php Payment handling · Order.php Order records
Components 28
Storefront & Catalog
- Storefront browsing
app/Http/Controllers/StorefrontController.php - Product catalog
app/Models/Product.php - Product reviews
app/Http/Controllers/ProductReviewController.php
Cart & Orders
- Cart management
app/Http/Controllers/CartController.php - Cart state
app/Models/Cart.php - Checkout & reservation
app/Http/Controllers/CheckoutController.php - Order tracking
app/Http/Controllers/OrderController.php - Order cancellation
app/Services/OrderCancellationService.php - Reservation expiry
app/Console/Commands/ReleaseExpiredOrderReservations.php - Order records
app/Models/Order.php
Payments
- Payment handling
app/Http/Controllers/PaymentController.php - Payment synchronization
app/Services/MidtransPaymentSynchronizer.php - Payment records
app/Models/Payment.php - Payment notifications
app/Models/PaymentNotification.php
Store Administration
- Catalog administration
app/Http/Controllers/Admin/ProductController.php - Category administration
app/Http/Controllers/Admin/CategoryController.php - Homepage promotions
app/Http/Controllers/Admin/HomepageFeatureController.php - Order administration
app/Http/Controllers/Admin/OrderController.php - Customer administration
app/Http/Controllers/Admin/CustomerController.php
Accounts & Address
- Account & profile
app/Http/Controllers/AuthController.php - Profile management
app/Http/Controllers/Customer/ProfileController.php - Region lookup
app/Services/IndonesiaRegionService.php - Region endpoints
app/Http/Controllers/IndonesiaRegionController.php - Customer accounts
app/Models/User.php
Other components
- Customer
- Web routes
routes/web.php - Midtrans Snap
- Store admin
Connections 48
- Customer → Web routes: requests
routes/web.php - Web routes → Storefront browsing: routes to
routes/web.php - Web routes → Cart management: routes to
routes/web.php - Web routes → Checkout & reservation: routes to
routes/web.php - Web routes → Payment handling: routes to
routes/web.php - Web routes → Order tracking: routes to
routes/web.php - Web routes → Product reviews: routes to
routes/web.php - Web routes → Account & profile: routes to
routes/web.php - Web routes → Profile management: routes to
routes/web.php - Web routes → Region endpoints: routes to
routes/web.php - Web routes → Catalog administration: routes to
routes/web.php - Web routes → Category administration: routes to
routes/web.php - Web routes → Homepage promotions: routes to
routes/web.php - Web routes → Order administration: routes to
routes/web.php - Web routes → Customer administration: routes to
routes/web.php - Storefront browsing → Product catalog: queries
app/Http/Controllers/StorefrontController.php - Product catalog → Product reviews: has reviews
app/Models/Product.php - Customer → Cart management: manages
- Cart management → Cart state: updates
app/Http/Controllers/CartController.php - Cart management → Product catalog: reads
app/Http/Controllers/CartController.php - Checkout & reservation → Cart state: reads
app/Http/Controllers/CheckoutController.php - Checkout & reservation → Product catalog: reserves stock
app/Http/Controllers/CheckoutController.php - Checkout & reservation → Order records: creates
app/Http/Controllers/CheckoutController.php - Customer → Checkout & reservation: places order
- Order tracking → Order records: reads
app/Http/Controllers/OrderController.php - Order tracking → Payment synchronization: synchronizes
app/Http/Controllers/OrderController.php - Order tracking → Order cancellation: delegates cancellation
app/Http/Controllers/OrderController.php - Reservation expiry → Order records: releases expired
app/Console/Commands/ReleaseExpiredOrderReservations.php - Reservation expiry → Product catalog: restores stock
app/Console/Commands/ReleaseExpiredOrderReservations.php - Payment handling → Order records: loads order
app/Http/Controllers/PaymentController.php - Payment handling → Payment records: records attempt
app/Http/Controllers/PaymentController.php - Payment handling → Midtrans Snap: creates Snap session
app/Http/Controllers/PaymentController.php - Midtrans Snap → Payment handling: notifies
app/Http/Controllers/PaymentController.php - Payment handling → Payment notifications: records notification
app/Http/Controllers/PaymentController.php - Payment handling → Product catalog: restores stock
app/Http/Controllers/PaymentController.php - Order cancellation → Payment records: updates attempts
app/Services/OrderCancellationService.php - Order cancellation → Midtrans Snap: cancels payment
app/Services/OrderCancellationService.php - Order cancellation → Product catalog: restores stock
app/Services/OrderCancellationService.php - Store admin → Web routes: manages store
routes/web.php - Catalog administration → Product catalog: manages
app/Http/Controllers/Admin/ProductController.php - Catalog administration → Category administration: uses categories
app/Http/Controllers/Admin/ProductController.php - Homepage promotions → Product catalog: selects products
app/Http/Controllers/Admin/HomepageFeatureController.php - Order administration → Order records: manages
app/Http/Controllers/Admin/OrderController.php - Customer administration → Customer accounts: reads customers
app/Http/Controllers/Admin/CustomerController.php - Customer administration → Order records: reads history
app/Http/Controllers/Admin/CustomerController.php - Category administration → Product catalog: manages categories
app/Http/Controllers/Admin/CategoryController.php - Account & profile → Customer accounts: authenticates
app/Http/Controllers/AuthController.php - Profile management → Region lookup: validates address
app/Http/Controllers/Customer/ProfileController.php