HTML and Form Builders for the Laravel Framework

5.6 2018-04-03 09:39 UTC

README

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

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>