2. Basic Form - joserick/laravel-bootstrap-4-forms GitHub Wiki
Basic form controls
Opening and closing a form
// Opening a form using POST method
{!!Form::open()!!}
// ... Form components here
{!!Form::close()!!}
Opening the form will add _token field automatically for you
Inline form
// Making all inputs inline
{!!Form::open()->formInline()!!}
// You can use FALSE to turn off disable form inline
{!!Form::open()->formInline(false)!!}
Fieldset
| Param | Type | Default | Description |
|---|---|---|---|
| $legend | string | null | Fieldset Legend |
// Example
{!!Form::fieldsetOpen('Legend title')!!}
// ... fieldset content
{!!Form::fieldsetClose()!!}
Errors
Show all errors inside a panel
| Param | Type | Default | Description |
|---|---|---|---|
| $title | string | null | Panel title |
// Example
{!!Form::errors("The form has errors")!!}