Skip to content

Commit

Permalink
Revert "[5.2] Use toArray() for Model Object Value"
Browse files Browse the repository at this point in the history
This reverts commit e7db3dd.
  • Loading branch information
Adam Engebretson committed Jan 16, 2016
1 parent add2c74 commit c88b2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ protected function getModelValueAttribute($name)
return $this->model->getFormValue($name);
}

return data_get($this->model->toArray(), $this->transformKey($name));
return data_get($this->model, $this->transformKey($name));
}

/**
Expand Down

0 comments on commit c88b2d5

Please sign in to comment.