Add setModel method to FormBuilder
This commit is contained in:
1 parent
ada31f214b
commit
e9aec605fd
1 file changed
+11
@@ -150,6 +150,17 @@ class FormBuilder {
|
|||||||
return $this->open($options);
|
return $this->open($options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set model on form builder.
|
||||||
|
*
|
||||||
|
* @param mixed $model
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setModel($model)
|
||||||
|
{
|
||||||
|
$this->model = $model;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close the current form.
|
* Close the current form.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in new issue
Block a user