Get from composer require to a working shop. This assumes the artisanpack-ui/ecommerce engine is installed and migrated.
1. Install
composer require artisanpack-ui/ecommerce-storefront-livewire
php artisan ecommerce-storefront:install
The service provider is auto-discovered. The install command:
- publishes
config/artisanpack/ecommerce-storefront-livewire.php; - prints the front-end setup (the design system's npm packages, stylesheet lines, behavior engine, and build step) and the layout snippets;
- warns when your
loginorregisterroute is missing, when no payment gateway is registered or configured, and whenartisanpack-ui/visual-editoris installed but storefront templates are off.
Nothing it checks stops the install. See Installation.
2. Set up the front end
The package ships no CSS or JavaScript build. Your application's Vite build loads the ArtisanPack UI design system and scans the storefront's views. The install command prints each of these steps. Install the design system:
npm install @artisanpack-ui/css@^1 @artisanpack-ui/behavior@^1
Add it and the storefront's @source lines to your main stylesheet (for example resources/css/app.css). The @layer line comes first:
@layer theme, base, apui, components, utilities;
@import 'tailwindcss';
@import '@artisanpack-ui/css';
@source "../../vendor/artisanpack-ui/ecommerce-storefront-livewire/resources/views/**/*.blade.php";
@source "../../vendor/artisanpack-ui/ecommerce-storefront-livewire/src/**/*.php";
Register the behavior engine in resources/js/app.js:
import apuiBehavior from '@artisanpack-ui/behavior/alpine';
document.addEventListener( 'alpine:init', () => window.Alpine.plugin( apuiBehavior ) );
Then build:
npm run build
See Front-End Setup for the full setup, including the component library's @source lines and a Content Security Policy.
3. Pick a layout
Out of the box, pages use the package's own layout (ecommerce-storefront::layouts.app), with a header, search box, cart button, and footer. To render the shop inside your site's header and footer, set storefront.layout to your layout and add one include to it:
@include( 'ecommerce-storefront::partials.global' )
See Layouts, including the one-line wrapper for <x-app-layout>-style component layouts.
4. Seed a demo store (optional)
The engine ships a demo seeder that creates products, customers, and orders:
php artisan ecommerce:seed-demo
| Option | Default | Meaning |
|---|---|---|
--products |
50 |
Number of products |
--orders |
200 |
Number of orders, placed over the last 90 days |
--seed |
random | Same seed, same store |
--fresh |
off | Empty the engine's data tables first |
--force |
off | Skip the confirmation prompt; required in production |
Do not run it against a live store.
5. Visit the shop
Open /shop. The prefix is storefront.route_prefix in the config. From there you can browse the catalog, open a product, add it to the cart, and check out. Signed-in customers find their orders, addresses, and downloads under /account.
To take payments, enable a gateway in the engine (for Stripe: ECOMMERCE_STRIPE_ENABLED, ECOMMERCE_STRIPE_SECRET_KEY, ECOMMERCE_STRIPE_PUBLISHABLE_KEY). See Payment Drivers.
Next steps
- Configuration: every config key and store setting.
- Layouts: use your own layout.
- Screens: what each page does.
- Checkout — layouts, guest checkout, and payment
- Extending — hooks, embedding components, and Blade components

