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.
2 parents 76a13c8 + 14f0669 commit 3be013aCopy full SHA for 3be013a
src/Concern/ModelTree.php
@@ -16,9 +16,13 @@ trait ModelTree
16
17
public function initializeModelTree()
18
{
19
- $this->fillable[] = $this->determineOrderColumnName();
20
- $this->fillable[] = $this->determineParentColumnName();
21
- $this->fillable[] = $this->determineTitleColumnName();
+ if (!empty($this->getFillable())) {
+ $this->mergeFillable([
+ $this->determineOrderColumnName(),
22
+ $this->determineParentColumnName(),
23
+ $this->determineTitleColumnName(),
24
+ ]);
25
+ }
26
}
27
28
/**
0 commit comments