Fix the issue of getting form value from related model

This commit is contained in:
Adrian Gunawan committed 2016-05-19 15:47:42 +10:00
1 parent a3d42da280
commit 0625f71fd9
2 files changed
+13

No files matched your search

+4
View File
@@ -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;