jaapmoolenaar.nl / html
HTML and Form Builders for the Laravel Framework
5.6
2018-04-03 09:39 UTC
Requires
- php: >=5.5.9
- illuminate/http: 5.6.*
- illuminate/routing: 5.6.*
- illuminate/session: 5.6.*
- illuminate/support: 5.6.*
- illuminate/view: 5.6.*
Requires (Dev)
- illuminate/database: 5.2.*|5.3.*
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
README
Official documentation for Forms & Html for The Laravel Framework can be found at the LaravelCollective website.
Additions
Labels are now allowed to contain HTML if the fourth parameter is set to true.
Form::label('email', '<i class="fa fa-envelope"></i> E-mail Address', [], true)
Will result in
<label for="email"><i class="fa fa-envelope"></i> E-mail Address</label>
This is useful for wrapping checkboxes in a label:
$checkbox = Form::checkbox('remember'); Form::label('remember', $checkbox.' Remember me', [], true)
Will result in
<label for="remember"><input type="checkbox" name="remember"> Remember me</label>