| Package Data | |
|---|---|
| Maintainer Username: | Satsume |
| Maintainer Contact: | adam@laravelcollective.com (Adam Engebretson) |
| Package Create Date: | 2016-02-11 |
| Package Last Update: | 2018-04-03 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:12:54 |
| Package Statistics | |
|---|---|
| Total Downloads: | 185 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Official documentation for Forms & Html for The Laravel Framework can be found at the LaravelCollective website.
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>