We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70686da commit 3bd57e8Copy full SHA for 3bd57e8
src/SelectTree.php
@@ -437,8 +437,14 @@ public function storeResults(bool $storeResults = true): static
437
438
public function getTree(): Collection|array
439
{
440
- return $this->evaluate($this->buildTree()->when($this->prepend,
441
- fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend))));
+ return $this->evaluate($this->buildTree()
+ ->when($this->prepend,
442
+ fn (Collection $tree) => $tree->prepend($this->evaluate($this->prepend))
443
+ )
444
+ ->when($this->append,
445
+ fn(Collection $tree) => $tree->push($this->evaluate($this->append))
446
447
+ );
448
}
449
450
public function getResults(): Collection|array|null
0 commit comments