Skip to content

Commit

Permalink
Fixes logic.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Nov 22, 2020
1 parent 0437cb8 commit 09de108
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ protected function request(string $name)
*/
protected function getModelValueAttribute(string $name)
{
if (! isset($this->model)) {
return null;
}

$key = $this->transformKey($name);

if (\method_exists($this->model, 'getFormValue')) {
Expand Down

0 comments on commit 09de108

Please sign in to comment.