diff --git a/src/Macros/BlueprintMarcos.php b/src/Macros/BlueprintMarcos.php index 76e683a..d4db25a 100644 --- a/src/Macros/BlueprintMarcos.php +++ b/src/Macros/BlueprintMarcos.php @@ -14,8 +14,8 @@ public function treeColumns() { return function (string $titleType = 'string') { $this->{$titleType}(Utils::titleColumnName()); - $this->integer(Utils::parentColumnName())->default(Utils::defaultParentId()); - $this->integer(Utils::orderColumnName())->default(0)->index(); + $this->integer(Utils::parentColumnName())->default(Utils::defaultParentId())->index(); + $this->integer(Utils::orderColumnName())->default(0); }; } }