Transform the field name when getting the form value from model
This commit is contained in:
1 parent
02c75dff24
commit
a3d42da280
1 file changed
+1
-1
+1
-1
@@ -1103,7 +1103,7 @@ class FormBuilder
|
||||
protected function getModelValueAttribute($name)
|
||||
{
|
||||
if (method_exists($this->model, 'getFormValue')) {
|
||||
return $this->model->getFormValue($name);
|
||||
return $this->model->getFormValue($this->transformKey($name));
|
||||
}
|
||||
|
||||
return data_get($this->model, $this->transformKey($name));
|
||||
|
||||
Reference in new issue
Block a user