Skip to content

Controllers & Models Reference

LaraCommerce is a massive API with over 80 Eloquent Models and 70 Controllers. This page provides a complete map of the project structure, grouped by domain.


🔐 Authentication & Users

DomainModelsControllers
Core AuthUser, SocialAccount, PushTokenRegisterController, LoginController, TokenController, ForgotPasswordController, ResetPasswordController, VerifyEmailController, SocialAuthController
ProfileUserProfile, AddressUser/ProfileController, User/AddressController
Customer MgmtCustomerGroupAdmin/UserController, Admin/CustomerGroupController

🛍️ Catalog & Products

DomainModelsControllers
ProductsProduct, ProductVariant, ProductImage, ProductTranslationProductController, Admin/ProductController, Admin/ProductVariantController, Admin/ProductTranslationController
TaxonomyCategory, Brand, Tag, CollectionCategoryController, BrandController, Admin/CategoryController, Admin/BrandController, Admin/TagController, Admin/CollectionController
AttributesAttribute, AttributeValueAdmin/AttributeController
InteractionsReview, ReviewImage, ReviewVote, Question, QuestionAnswer, Wishlist, WishlistItem, ProductViewReviewController, QuestionController, WishlistController, ProductViewController, Admin/ReviewController

🛒 Shopping & Orders

DomainModelsControllers
CartCart, CartItemCartController
OrdersOrder, OrderItem, OrderAddress, OrderStatusHistoryOrderController, Admin/OrderController
ReturnsReturn, ReturnItem, RefundReturnController, Admin/ReturnController, Admin/RefundController
FulfillmentShipment, ShipmentTrackingAdmin/ShipmentController

📦 Inventory & Logistics

DomainModelsControllers
StockWarehouse, Inventory, StockLog, StockAlertAdmin/WarehouseController, Admin/StockController
ShippingShippingZone, ShippingMethod, ShippingRate, Country, StateShippingController, Admin/ShippingZoneController, Admin/ShippingMethodController

📣 Marketing & Growth

DomainModelsControllers
DiscountsCoupon, CouponUsage, Promotion, PriceTierAdmin/CouponController, Admin/PromotionController, Admin/PriceTierController
CampaignsBanner, FlashSale, FlashSaleItem, Bundle, BundleItemBannerController, FlashSaleController, BundleController, Admin/BannerController, Admin/FlashSaleController, Admin/BundleController
RetentionLoyaltyPoint, LoyaltyTransaction, GiftCard, GiftCardUsage, AbandonedCartEmailGiftCardController, Admin/LoyaltyController, Admin/GiftCardController
AffiliatesAffiliate, AffiliateConversionAdmin/AffiliateController

📝 Content & System

DomainModelsControllers
CMSPage, Faq, BlogPost, BlogCategory, ContactPageController, FaqController, BlogController, ContactController, Admin/PageController, Admin/FaqController, Admin/BlogPostController, Admin/BlogCategoryController, Admin/ContactController
ConfigSetting, Currency, Language, TaxCategory, TaxRateSettingController, CurrencyController, Admin/SettingController, Admin/CurrencyController, Admin/LanguageController, Admin/TaxCategoryController, Admin/TaxRateController
DevOpsActivityLog, ApiLog, SearchLog, WebhookEndpoint, WebhookDeliveryAdmin/LogController, Admin/WebhookController, Admin/AnalyticsController, Admin/DashboardController, Admin/MediaController

🛠️ Internal Services (app/Services)

The "Brain" of the application. These classes handle the actual complex logic.

  • AuthService: Registration logic and token issuance.
  • OrderService: Atomic checkout, transaction management, and order number generation.
  • InventoryService: Thread-safe stock reservation and deduction.
  • PaymentService: Stripe PaymentIntent lifecycle and saved cards.
  • CartService: Total calculations, coupon application, and guest-to-user merging.
  • ProductService: Complex product creation with variants, attributes, and image processing.
  • ShippingCalculatorService: Multi-zone shipping cost calculation.
  • CouponService: Rules-based discount validation.
  • MediaService: S3/MinIO upload, deletion, and resizing.
  • SearchService: Meilisearch index management and advanced filtering logic.
  • WebhookService: Outgoing webhook dispatching with retries.

Licensed for single or extended use.