Skip to main content

Panel Configuration

Publish the panel configuration file if it has not already been published:
This creates config/lunar-panel.php with the following options:

Product Association Types

By default, the admin panel provides three association types in the product associations dropdown: Cross Sell, Up Sell, and Alternate. These come from the Lunar\Base\Enums\ProductAssociation enum. To add custom association types, create a new backed enum that implements the ProvidesProductAssociationType interface:
Then update config/lunar/products.php to point to the custom enum:
The admin panel reads from this configuration automatically. The custom types will appear in the association type dropdown when creating or viewing product associations, with no additional setup required.
The enum must be a backed string enum, and each case must implement a label() method that returns the human-readable name. See the Associations reference for full details on using custom types in application code.