How taheryhaia2/e-shop works
This is a Laravel E-Shop application for browsing products and managing a shopping account, alongside staff administration. The visible product-browsing flow filters or selects products in ProductController, which reads product and category data and renders storefront views. AdminController handles catalog, category, order and dashboard operations; ReviewController persists review changes. The tree also shows authentication, cart and favorites areas, but their controller implementations and route mappings were not sampled, so those components are represented without guessed wiring.
Main entry points: database.php Configured database · ProductController.php Product browsing · AdminController.php Admin operations · Product.php Product model
Components 22
Storefront
- Web routes
routes/web.php - Product browsing
app/Http/Controllers/ProductController.php - Catalog views
resources/views/products/index.blade.php - Home page
resources/views/home.blade.php - Product detail
resources/views/products/show.blade.php
Customer account
- Authentication
app/Http/Controllers/AuthController.php - Shopping cart
app/Http/Controllers/CartController.php - Favorites
app/Http/Controllers/FavoriteController.php - Review handling
app/Http/Controllers/ReviewController.php
Administration
- Admin operations
app/Http/Controllers/AdminController.php - Admin access guard
app/Http/Middleware/AdminMiddleware.php - Admin views
resources/views/admin/dashboard.blade.php
Domain and persistence
- Product model
app/Models/Product.php - Category model
app/Models/Category.php - Review model
app/Models/Review.php - Cart model
app/Models/Cart.php - Favorite model
app/Models/Favorite.php - Order model
app/Models/Order.php - User model
app/Models/User.php - Configured database
config/database.php
Other components
- Shopper
- Web request
Connections 19
- Web request → Web routes: dispatches
- Product browsing → Product model: queries
- Product browsing → Category model: queries
- Product browsing → Catalog views: renders
- Product browsing → Home page: renders
- Product browsing → Product detail: renders
- Admin operations → Product model: manages
- Admin operations → Category model: manages
- Admin operations → Order model: manages
- Admin operations → User model: counts
- Admin operations → Admin views: renders
- Review handling → Review model: creates or deletes
- Product model → Configured database: persists via ORM
- Category model → Configured database: persists via ORM
- Review model → Configured database: persists via ORM
- Cart model → Configured database: persists via ORM
- Favorite model → Configured database: persists via ORM
- Order model → Configured database: persists via ORM
- User model → Configured database: persists via ORM