975 B
975 B
Market Module
Purpose
Manages product and store operations for the multi-vendor marketplace. Handles product CRUD, store management, and transaction tracking.
Key Files
app/Http/Controllers/Market/ProductController.php- Product controllerapp/Http/Controllers/Market/StoreController.php- Store controllerapp/Models/Market/Product.php- Product modelapp/Models/Market/Store.php- Store model
Public APIs
createNew_Admin()- Create product for admineditProductAdmin()- Edit productAddProducttoStore()/RemoveProductFromStore()store()- Create new storeupdate()- Update store
Dependencies
App\Models\Market\ProductApp\Models\Market\StoreApp\Models\User
Important Behavior
- Products can belong to multiple stores (belongsToMany)
- Supports categories and subcategories via enums
- Tracks transaction sessions per store
- Store-product relationship with pivot data (available, price, is_active)