How thilyhoan0603-dau/xay_dung_ung_dung_dat_hang works
The tree contains a standalone PHP ShopeeFood ordering app alongside a Laravel application with authentication, profile, and storefront code; a second Laravel copy is also present. The clearest evidenced user workflow is the PHP restaurant listing: it loads database and session helpers, searches active restaurants, and links to restaurant details. Cart, checkout, order tracking, and admin/merchant/driver areas are represented by their source paths, but their internal wiring was not sampled, so those relationships are left unverified. The README describes Laravel generally, not these product-specific features.
Main entry points: shopeefood/index.php Restaurant listing · admin/index.php Admin console · web.php Web routes · cart.php Cart
Components 28
Restaurant discovery
- Restaurant listing
shopeefood/index.php - Session and roles
shopeefood/config/auth.php - MySQL connection
shopeefood/config/database.php - Restaurant details
shopeefood/restaurant.php
Ordering and fulfillment
- Cart
shopeefood/cart.php - Checkout
shopeefood/checkout.php - Order list
shopeefood/orders.php - Order details
shopeefood/order_detail.php
Role operations
- Admin console
shopeefood/admin/index.php - Admin orders
shopeefood/admin/orders.php - Restaurant admin
shopeefood/admin/restaurants.php - Food admin
shopeefood/admin/foods.php - User admin
shopeefood/admin/users.php - Merchant dashboard
shopeefood/merchant/index.php - Merchant foods
shopeefood/merchant/foods.php - Merchant orders
shopeefood/merchant/orders.php - Driver dashboard
shopeefood/driver/index.php - Driver orders
shopeefood/driver/orders.php
Laravel application
- Laravel entry
public/index.php - Laravel bootstrap
bootstrap/app.php - Web routes
routes/web.php - Auth routes
routes/auth.php - Login handler
app/Http/Controllers/Auth/AuthenticatedSessionController.php - Registration handler
app/Http/Controllers/Auth/RegisteredUserController.php - User model
app/Models/User.php - Home controller
app/Http/Controllers/HomeController.php - Profile controller
app/Http/Controllers/ProfileController.php
Other components
- Customer
Connections 24
- Customer → Restaurant listing: browses
shopeefood/index.php - Restaurant listing → MySQL connection: queries
shopeefood/index.php - Restaurant listing → Session and roles: reads session
shopeefood/index.php - Restaurant listing → Restaurant details: links to
shopeefood/index.php - Restaurant listing → Cart: links to
shopeefood/index.php - Restaurant listing → Order list: links to
shopeefood/index.php - Restaurant details → Cart: optional flow
- Cart → Checkout: optional flow
- Checkout → Order list: optional flow
- Order list → Order details: optional flow
- Laravel entry → Laravel bootstrap: loads
public/index.php - Laravel bootstrap → Web routes: configures
bootstrap/app.php - Auth routes → Login handler: routes login
routes/auth.php - Auth routes → Registration handler: routes registration
routes/auth.php - Registration handler → User model: creates user
app/Http/Controllers/Auth/RegisteredUserController.php - Web routes → Home controller: routes to
- Web routes → Profile controller: routes to
- Admin console → Admin orders: role area
- Admin console → Restaurant admin: role area
- Admin console → Food admin: role area
- Admin console → User admin: role area
- Merchant dashboard → Merchant foods: role area
- Merchant dashboard → Merchant orders: role area
- Driver dashboard → Driver orders: role area