// Opening a form using POST method
{!!Form::open()!!}
// Opening a form using POST method with specific errors message bag
{!!Form::open('messageBag')!!}
// ... Form components here
// Closing a form
{!!Form::close()!!}
// Making all inputs inline
{!!Form::inlineForm()!!}
// Examples
// Open fieldset
{!!Form::fieldsetOpen()!!}
// Open fieldset with legend
{!!Form::fieldsetOpen('Legend title')!!}
// Open fieldset with error display by field name
{!!Form::fieldsetOpen('Legend title', 'field_name')!!}
// Open fieldset as wrapper (checkbox/radio)
{!!Form::fieldsetOpen('Legend title', 'field_name', true)!!}
// Open fieldset with help text
{!!Form::fieldsetOpen('Legend title')->help('Help')!!}
// Open fieldset with error display by field name and help text
{!!Form::fieldsetOpen('Legend title', 'field_name')->help('Help')!!}
// ... Fieldset content
// Close fieldset
{!!Form::fieldsetClose()!!}
// Close fieldset with error display by field name
{!!Form::fieldsetClose('field_name')!!}
// Close fieldset with help text
{!!Form::fieldsetClose()->help('Help')!!}
// Close fieldset with error display by field name and help text
{!!Form::fieldsetClose('field_name')->help('Help')!!}
// Example
{!!Form::text('name', 'User name')!!}
// Example
{!!Form::textarea('description', 'Description')!!}
// Example
{!!Form::select('city', 'Choose your city', [1 => 'Gotham City', 2 => 'Springfield'])!!}
// Example
{!!Form::checkbox('orange', 'Orange')!!}
// Example
{!!Form::radio('orange', 'Orange')!!}
// Example
{!!Form::file('name', 'File name')!!}
// Example
{!!Form::plainText('name', 'User name')!!}
// Example
{!!Form::range('name', 'Range')!!}
// Example
{!!Form::password('name', 'Password')!!}
// Example
{!!Form::email('name', 'Email')!!}
// Example
{!!Form::email('name', 'Number')!!}
// Example
{!!Form::email('name', 'Tel')!!}
// Example
{!!Form::hidden('user_id')!!}
// Example
{!!Form::anchor("Link via parameter", 'foo/bar')!!}
// Example
{!!Form::submit("Send form")!!}
// Example
{!!Form::button("Do something", "warning", "lg")!!}
// Example
{!!Form::reset("Clear form")!!}
// Examples
// With initial data using a Model instance
$user = User::find(1);
{!!Form::open()->fill($user)!!}
// With initial array data
$user = ['name' => 'Jesus', 'age' => 33];
{!!Form::open()->fill($user)!!}
// Example
{!!Form::anchor("Link via url")->url('foo/bar')!!}
// Example
{!!Form::anchor("Link via route")->route('home')!!}
// Examples
// Make checkbox checked
{!!Form::checkbox('agree', 'I agree')->checked()!!}
// You can use FALSE to turn off checked status
{!!Form::checkbox('agree', 'I agree')->checked(false)!!}
// Example
{!!Form::text('name', 'Name')->placeholder('Input placeholder')!!}
// Examples
// Set autocomplete on input
{!!Form::text('name', 'Name')->autocomplete()!!}
// You can use FALSE to turn off autocomplete status
{!!Form::text('name', 'Name')->autocomplete(false)!!}
// Examples
// Set sr-only style on label
{!!Form::text('name', 'Name')->srOnly()!!}
// You can use FALSE to turn off sr-only status
{!!Form::text('name', 'Name')->srOnly(false)!!}
// Example
{!!Form::text('name', 'Name')->prepend('Input prepend')!!}
// Example
{!!Form::select('city', 'Choose your city', [1 => 'Gotham City', 2 => 'Springfield'])->multiple()!!}
// Example
{!!Form::open()->locale('forms.user')!!}
// Example
{!!Form::text('name', 'Name')->help('Help text here')!!}
// Example
{!!Form::text('name', 'Name')->attrs(['data-foo' => 'bar', 'rel'=> 'baz'])!!}
// Examples
// Using readonly field
{!!Form::text('name', 'Name')->readonly()!!}
// You can use FALSE to turn off readonly status
{!!Form::text('name', 'Name')->readonly(false)!!}
// Examples
// Disabling a field
{!!Form::text('name', 'Name')->disabled()!!}
// Disabling a fieldset
{!!Form::fieldsetOpen('User data')->disabled()!!}
// You can use FALSE to turn off disabled status
{!!Form::text('name', 'Name')->disabled(false)!!}
// Examples
// Make a field )->!!Form::fieldsetOpen('User data')->name', 'Name')->
// Examples
// Set block style on a field
{!!Form::text('name', 'Name')->block()!!}
// You can use FALSE to turn off block status
{!!Form::text('name', 'Name')->block(false)!!}
// Examples
// Set simple status for a button
{!!Form::button('Button')->simple()!!}
// Set simple status for an anchor
{!!Form::anchor('Anchor')->simple()!!}
// You can use FALSE to turn off simple status
{!!Form::button('Button')->simple(false)!!}
// Example
{!!Form::text('name', 'Name')->id('user-name')!!}
// Example
{!!Form::text('name', 'Name')->class('class')!!}
// Example
{!!Form::text('name', 'Name')->wrapperClass('class')!!}
// Example
{!!Form::text('name', 'Name')->labelClass('class')!!}
// Example
{!!Form::open()->idPrefix('register')!!}
// Example
{!!Form::open()->generalClass('class')!!}
// Examples
{!!Form::open()->multipart()!!}
// You can use FALSE to turn off multipart
{!!Form::open()->multipart(false)!!}
// Examples
// Password field
{!!Form::text('password', 'Your password')->type('password')!!}
// Number field
{!!Form::text('age', 'Your age')->type('number')!!}
// Email field
{!!Form::text('email', 'Your email')->type('email')!!}
// Example
{!!Form::text('name', 'Your name')->value('Maria')!!}
// Examples
// Number field
{!!Form::render('text')->name('age')->label('Your age')!!}
// Examples
{!!Form::open()->locale('forms.user')->put()->multipart()->route('user.add')->data($user)!!}
{!!Form::text('name', 'Name')->placeholder('Type your name')->lg()!!}
{!!Form::anchor("Link as a button")->sm()->info()->outline()!!}
{!!Form::submit('Awesome button')->id('my-btn')->disabled()->danger()->lg()!!}
{!!Form::close()!!}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.