From 8188aec2fc2738838394299fcf97032d3826db34 Mon Sep 17 00:00:00 2001
From: Mac Tavish <49161243+MacTavish-69@users.noreply.github.com>
Date: Tue, 30 Dec 2025 22:40:14 +0500
Subject: [PATCH 1/2] Added info about Root Collection in
collections#add-a-child-collection
---
1.x/reference/collections.mdx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/1.x/reference/collections.mdx b/1.x/reference/collections.mdx
index 5d5f0fd..bb09d44 100644
--- a/1.x/reference/collections.mdx
+++ b/1.x/reference/collections.mdx
@@ -52,6 +52,11 @@ This results in the following
- Child
```
+
+Lunar expects to have at least one Root/Parent collection. If you do not have a root collection, you can't create child collections. This is important to consider for those who use seeder
+to setup initial state of their ecommerce system.
+
+
Lunar uses the [Laravel Nested Set](https://github.com/lazychaser/laravel-nestedset) package, so feel free to take a look at it to see what's possible.
### Adding products
From 778c4158c304cd48f585b991f17a01ca97904a13 Mon Sep 17 00:00:00 2001
From: Mac Tavish <49161243+MacTavish-69@users.noreply.github.com>
Date: Tue, 30 Dec 2025 22:45:59 +0500
Subject: [PATCH 2/2] Added Warning about "name" being used internally from
Attribute Data, in collections#create-a-collection
---
1.x/reference/collections.mdx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/1.x/reference/collections.mdx b/1.x/reference/collections.mdx
index bb09d44..af925e5 100644
--- a/1.x/reference/collections.mdx
+++ b/1.x/reference/collections.mdx
@@ -36,6 +36,9 @@ $collection = \Lunar\Models\Collection::create([
]);
```
+
+Lunar internally expects and uses the ``name`` added to Collection Attribute data. You must add it in attributes, and utilize it; Otherwise, Admin Panel may throw unexpected errors.
+
### Add a child collection