Adds getModel()

It would be nice to be able to get the model before setting a new one (maybe in a partial) and having the original model to set back at the end of the partial.
This commit is contained in:
Tony authored and GitHub committed 2017-09-14 10:51:14 -05:00
1 parent 2f6dc39ab3
commit e6bc7e5fea
1 file changed
+10
+10
View File
@@ -190,6 +190,16 @@ class FormBuilder
{
$this->model = $model;
}
/**
* Get the current model instance on the form builder.
*
* @return mixed $model
*/
public function getModel()
{
return $this->model;
}
/**
* Close the current form.