jaapmoolenaar.nl/html

HTML and Form Builders for the Laravel Framework
185
Install
composer require jaapmoolenaar.nl/html
Latest Version:5.6
PHP:>=5.5.9
License:MIT
Last Updated:Apr 3, 2018
Links: GitHub  ·  Packagist
Maintainer: Satsume

Forms & HTML

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>