File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ class SelectTree extends Field implements HasAffixActions
8888
8989 protected Closure |array |null $ prepend = null ;
9090
91-
9291 protected function setUp (): void
9392 {
9493 // Load the state from relationships using a callback function.
@@ -296,12 +295,14 @@ public function parentNullValue(int|string|null $parentNullValue = null): static
296295 public function multiple (Closure |bool $ multiple = true ): static
297296 {
298297 $ this ->multiple = $ multiple ;
298+
299299 return $ this ;
300300 }
301301
302302 public function prepend (Closure |array |null $ prepend = null ): static
303303 {
304304 $ this ->prepend = $ prepend ;
305+
305306 return $ this ;
306307 }
307308
@@ -412,7 +413,7 @@ public function storeResults(bool $storeResults = true): static
412413 public function getTree (): Collection |array
413414 {
414415 return $ this ->evaluate ($ this ->buildTree ()->when ($ this ->prepend ,
415- fn (Collection $ tree ) => $ tree ->prepend ($ this ->evaluate ($ this ->prepend ))));
416+ fn (Collection $ tree ) => $ tree ->prepend ($ this ->evaluate ($ this ->prepend ))));
416417 }
417418
418419 public function getResults (): Collection |array |null
You can’t perform that action at this time.
0 commit comments