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:
1 parent
2f6dc39ab3
commit
e6bc7e5fea
1 file changed
+10
@@ -190,6 +190,16 @@ class FormBuilder
|
|||||||
{
|
{
|
||||||
$this->model = $model;
|
$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.
|
* Close the current form.
|
||||||
|
|||||||
Reference in new issue
Block a user