Lunar Headless E-Commerce for Laravel
Published on by Paul Redmond
Lunar is an open-source package that brings the power of modern headless e-commerce functionality to Laravel. This package allows you to have complete control over the e-commerce frontend experience and has done the hard work for you in the backend.
The admin hub is a UI that ships with Lunar that you can visit by going to /hub
once you install Lunar.
There is also Lunar Livewire starter kit you can use as a reference to learn how to integrate various aspects of the frontend store.
You can see the complete reference in the documentation to get familiar with all the Eloquent models available. At the time of writing, here are some of the main models Lunar provides:
- Activity log to track database changes
- Addresses
- Connect related products with Associations
- Store custom attributes on Eloquent models
- Carts
- Channels
- Collections of products
- Currencies
- Customers
- Discounts
- Images
- Languages
- Orders
- Payments
- Products
- Search
- And more...
The Lunar project also plans to provide a Storefront API that you can use to power JavaScript frontends or mobile apps via a RESTful API.
To get started with this package, check out lunarphp.io for documentation and installation instructions.