16/08
2013
dev-master
9999999-dev
The Requires
- php >=5.3.0
- illuminate/support 4.0.x
The Development Requires
by Mike Funk
Wallogit.com
2017 © Pedro Peláez
At the moment this only contains booleanCheckbox()., (*2)
Put this in your composer.json require object:, (*3)
"mike-funk/laravel-form-extensions": "dev-master"
Then run composer update, (*4)
Then put this in your app/config/app.php under providers:, (*5)
'MikeFunk\LaravelFormExtensions\LaravelFormExtensionsServiceProvider'
Then change the binding for the Form facade in app/config/app.php under aliases:, (*6)
'Form' => 'MikeFunk\LaravelFormExtensions\LaravelFormExtensions'
You should be ready to rock!, (*7)
// in the view
{{ Form::booleanCheckbox('input_name', true, array('class' => 'awesome')) }}
Will return this HTML:, (*8)
<input type="hidden" name="input_name" value="0" /> <input type="checkbox" name="input_name" value="1" checked="checked" class="awesome" />