Adding FormAccessible Trait

Signed-off-by: Adam Engebretson <adam.engebretson@bridgeconx.com>
This commit is contained in:
Adam Engebretson committed 2015-12-01 03:41:47 -06:00
1 parent e70854b523
commit 5b7668573d
5 files changed
+225

No files matched your search

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