diff --git a/src/NestableCollection.php b/src/NestableCollection.php index 6204546..7c22d6c 100644 --- a/src/NestableCollection.php +++ b/src/NestableCollection.php @@ -34,6 +34,13 @@ public function __construct(array $items = []) $this->total = count($items); } + public function parentColumn($name) + { + $this->parentColumn = $name; + + return $this; + } + public function childrenName(string $name): self { $this->childrenName = $name;