Requirements
- PHP >= 8.2
- Laravel 11, 12
- MySQL 8.0+ / PostgreSQL 9.4+
bcmathPHP extensionexifPHP extensionintlPHP extension
1. Install the package
2. Add the LunarUser trait
Parts of the Lunar core rely on theUser model having certain e-commerce relationships (carts, orders, customers). Add the bundled trait and interface to any model that represents users in the application.
3. Register the admin panel
Register the Lunar admin panel in the application’sAppServiceProvider:
4. Run the installer
- Publish configuration files
- Run database migrations
- Create a default admin user
- Seed initial data: a default channel, language, currency (USD), customer group, collection group, tax class, tax zone, and product/collection attributes
- Publish Filament assets
5. Access the admin panel
Once the installer completes, the admin panel is available athttps://<yoursite>/lunar.
Telemetry
Lunar sends anonymous usage data once per day to help the maintainers understand how Lunar is used. The data does not identify a store in any way. To opt out, add the following to a service provider’sboot method:
Advanced installation options
Publish configuration before installing
The installer publishes configuration files automatically, but to customize settings before runningphp artisan lunar:install, publish them manually first:
Table prefix
Lunar prefixes all of its database tables to avoid conflicts. The default prefix islunar_ and can be changed in config/lunar/database.php:
User ID field type
Lunar assumes theUser model primary key is a BIGINT. If the application uses INT or UUID primary keys, update config/lunar/database.php before running migrations:
Disable bundled migrations
To take full control of Lunar’s database migrations, disable the bundled migrations and publish them into the application:What’s next?
Starter Kits
Get a head start with a pre-built Livewire or Inertia storefront.
Storefront Guides
Learn how to build a storefront from scratch with step-by-step guides.
System Settings
Configure channels, languages, currencies, and more.