2017 © Pedro Peláez
 

library laravel-html5-forms

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

image

braunson/laravel-html5-forms

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

  • Tuesday, October 10, 2017
  • by BraunsonYager
  • Repository
  • 6 Watchers
  • 94 Stars
  • 1,038 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

HTML5 Forms for Laravel

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements., (*1)

How to Install

  1. Install the braunson/laravel-html5-forms package, (*2)

    $ composer require "braunson/laravel-html5-forms:dev-master"
    
  2. Update app/config/app.php to activate the package, (*3)

    # Add `LaravelHTML5FormsServiceProvider` to the `providers` array
    'providers' => array(
        ...
        'Braunson\LaravelHTML5Forms\LaravelHTML5FormsServiceProvider',
    )
    

Usage / Supported Element Types

Since the package extends the default FormBuilder, you can just use Form::field() like you would normally but with the following supported items., (*4)

Color

Form::color($name, $value = null, $options = array())

Date

Form::date($name, $min = null, $max = null, $options = array())

This field requires you input atleast min or max or both fields., (*5)

Time

Form::time($name, $options = array())

Datetime

Form::dateTime($name, $options = array())

Datetime-local

Form::dateTimeLocal($name, $options = array())

Email

Form::email($name, $value = null, $options = array())

Week

Form::week($name, $value = null, $options = array())

Month

Form::month($name, $value = null, $options = array())

Number

Form::number($name, $value = null, $step = null, $options = array())

To specify a min/max range, add 'minmax' => '0|10' to your options array. By default if no minmax is specified, it is min 0 and max 10., (*6)

Tip: To not output min/max, specify in options array 'minmax' => false, (*7)

Range

Form::range($name, $value = null, $options = array())

To specify a min/max range, add 'minmax' => '0|10' to your options array. By default if no minmax is specified, it is min 0 and max 10., (*8)

Tip: To not output min/max, specify in options array 'minmax' => false, (*9)

Form::search($name, $value = null, $options = array())

Tel

Form::tel($name, $value = null, $options = array())

URL

Form::url($name, $value = null, $options = array())

Reporting Bugs or Feature Requests

Please report any bugs or feature requests on the github issues page for this project here:, (*10)

https://github.com/Braunson/laravel-html5-forms/issues, (*11)

Contributing

The Versions

10/10 2017

dev-master

9999999-dev

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

  Sources   Download

MIT

The Requires

 

10/10 2017

4.0

4.0.0.0

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

  Sources   Download

MIT

The Requires

 

13/02 2015

dev-laravel-5

dev-laravel-5

This package extends Laravel's FormBuilder to include some (soon all) HTML5 elements

  Sources   Download

MIT

The Requires