Configuration
Languages
Languages enable translated content across Lunar models such as products and collections.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Lunar\Models\Language
| Field | Type | Description |
|---|---|---|
id | id | Primary key |
code | string | The ISO 2-character language code, e.g. en |
name | string | A descriptive name, e.g. English |
default | boolean | Whether this is the default language |
created_at | timestamp | |
updated_at | timestamp |
| Relationship | Type | Related Model | Description |
|---|---|---|---|
urls | HasMany | Lunar\Models\Url | URLs associated with this language |
| Scope | Description |
|---|---|
default($default = true) | Filter to the default language |