Adding FormAccessible Trait
Signed-off-by: Adam Engebretson <adam.engebretson@bridgeconx.com>
This commit is contained in:
1 parent
e70854b523
commit
5b7668573d
5 files changed
+225
No files matched your search
@@ -1088,6 +1088,10 @@ class FormBuilder
|
||||
*/
|
||||
protected function getModelValueAttribute($name)
|
||||
{
|
||||
if (method_exists($this->model, 'getFormValue')) {
|
||||
return $this->model->getFormValue($name);
|
||||
}
|
||||
|
||||
return data_get($this->model, $this->transformKey($name));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user