Fix the issue of getting form value from related model
This commit is contained in:
1 parent
a3d42da280
commit
0625f71fd9
2 files changed
+13
No files matched your search
@@ -39,6 +39,10 @@ trait FormAccessible
|
||||
// retrieval from the model to a form that is more useful for usage.
|
||||
if ($this->hasFormMutator($key)) {
|
||||
return $this->mutateFormAttribute($key, $value);
|
||||
} else {
|
||||
|
||||
// No form mutator, let the model resolve this
|
||||
return data_get($this, $key);
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
||||
Reference in new issue
Block a user