
Prerequisites
Before following along with this guide, make sure you have the following requirements:- PHP 8.2
- MySQL 8.0+
Installation
In your Shopper app project, after installing the Starter kit, you need to run the command:Structure
When you install the Laravel Shopper Livewire Starter Kit, the following directories and files are published to your application. This structure provides simplest foundation for building your e-commerce storefront while giving you full control over customization.Actions
This directory (app/Actions) contains action classes that handle specific business logic, such as cart management, or order processing.
These actions are designed to be reusable and modular. Here the published files :
CountriesWithZone.phpCreateOrder.phpGetCountriesByZone.phpZoneSessionManager.phpPayment/PayWithCash.php
Contracts
TheContracts directory defines interfaces for key functionalities, such as commands or services. These contracts allow you to implement your own logic while adhering to a consistent structure.
DTO
The DTO (Data Transfer Objects) folder includes classes that encapsulate data structures used across the application. These objects ensure clean and consistent data handling. Here the published files :AddressData.phpCountryByZoneData.phpOptionData.phpPriceData.php
Middleware
The Middleware directory includes customZoneDetector middleware for handling selected zone for the customer.
Models
In your models folder, some models will be added (or replaced if you had models with the same name), such as :User.phpBrand.phpCategory.phpChannel.phpCollection.phpProduct.phpProductVariant.php
config/shopper/models.php files) that were copied with this installation.
Pages
Livewire Pages ComponentsAccount/Orders.phpAccount/Addresses.phpHome.phpSingleProduct.phpCheckout.php
pages.order.confirmedpages.account.indexpages.account.profilepages.account.orders.detail