diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 6a228ff7..4d0b9caa 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -1362,7 +1362,7 @@ protected function getModelValueAttribute($name) { $key = $this->transformKey($name); - if (method_exists($this->model, 'getFormValue')) { + if ($this->model !== null && method_exists($this->model, 'getFormValue')) { return $this->model->getFormValue($key); }