Download the PHP package smalldogs/html5inputs without Composer
On this page you can find all versions of the php package smalldogs/html5inputs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smalldogs/html5inputs
More information about smalldogs/html5inputs
Files in smalldogs/html5inputs
Package html5inputs
Short Description Adds support for all 11 remaining HTML5 elements (Laravel already supports 2 out of the box) using Laravels 4.2 Form interface (e.g. Form::date())
License BSD-2-Clause
Homepage https://blog.smalldo.gs/2014/04/laravel-4-html5-input-elements/
Informations about the package html5inputs
Laravel HTML 5 Inputs
Composer package which adds support for HTML5 elements by extending Laravel's Form interface (e.g. Form::date())
Adds support for: color
, date
, datetime
, datatime-local
, month
, number
, range
, search
, tel
, time
, week
. Laravel
Form interfce supports Email & Url out of the box.
This package allows you to use HTML5 inputs the same way as normal text fields Form::color('inputName');
Upgrade From v1
-
In your
composer.json
file, update the require line for this package to2.*
-
In your command line, run
composer update
. - Follow Step 2 below.
New Installation
-
On your command line
-
REPLACE the form alias with the new, extended facade, in
app/config/app.php
. - Add the service provider to your
app/config/app.php
providers array
How to Use
Just like your normal Form interface.
Changes from v1
The major difference between v1 and v2 is how the Form class is extended. Version 1 made use of the
Form::macro method, while v2 creates a Facade which extends \Illuminate\Support\Facades\Form
directly.
This allows for more direct similarity between the handling of the new methods and the default methods ( such as "text" or "email").
This also enables Form Model Binding with the new HTML5 elements.