To work with the Form Repository, use the following Facade:
||Get all Forms|
||Get Form by
||Makes a new
handle is the name of the form's YAML file.
Get a single form by its handle
Get all forms from your site
Get submissions to a form by its handle
Get a single submission to a form by its id
Get the blueprint of a form
Start by making an instance of a form with the
You need at least a handle before you can save a form.
$form = Form::make()->handle('feedback');
You may call additional methods on the entry to customize it further.
$form->handle('postbox')->honeypot('winnie-the-pooh')->title('The Hundred Acre Wood');
Finally, save it. It'll return a boolean for whether it succeeded.
$form->save(); // true or false