mike-funk / laravel-form-extensions
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/mike-funk/laravel-form-extensions
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
Requires (Dev)
- illuminate/html: 4.0.x
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2025-09-15 12:15:30 UTC
README
Laravel Form Extensions
At the moment this only contains booleanCheckbox()
.
Installation
Put this in your composer.json require object:
"mike-funk/laravel-form-extensions": "dev-master"
Then run composer update
Then put this in your app/config/app.php
under providers:
'MikeFunk\LaravelFormExtensions\LaravelFormExtensionsServiceProvider'
Then change the binding for the Form facade in app/config/app.php
under aliases:
'Form' => 'MikeFunk\LaravelFormExtensions\LaravelFormExtensions'
You should be ready to rock!
Usage
booleanCheckbox()
// in the view {{ Form::booleanCheckbox('input_name', true, array('class' => 'awesome')) }}
Will return this HTML:
<input type="hidden" name="input_name" value="0" /> <input type="checkbox" name="input_name" value="1" checked="checked" class="awesome" />