Giter Site home page Giter Site logo

laravel-html5-forms's Introduction

HTML5 Forms for Laravel

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

How to Install

  1. Install the braunson/laravel-html5-forms package

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

    # 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.

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.

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.

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

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.

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

Search

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:

https://github.com/Braunson/laravel-html5-forms/issues

Contributing

laravel-html5-forms's People

Contributors

braunson avatar chogberg avatar djekl avatar djuki avatar martellienrico avatar nestormata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-html5-forms's Issues

Why did you remove the master (L4) branch from packagist?

I was migrating an old Laravel 4 project depending on your bundle, but got constraint issues with it not being able to find the dev-master branch. I went to check, and it's indeed gone from packagist. Is it possible to put it back, or to make a separate Laravel 4 branch?

Trying to use this library with laravel 4.2

Hello, last year I've started a project with laravel 4.2 and some other libraries included this one, this is what I have in the composer.json

                "laravel/framework": "4.2.*",
		"bbatsche/entrust": "~2.0",
		"braunson/laravel-html5-forms": "dev-master", 
		"andywer/js-localization": "dev-laravel-4.2",
		"maatwebsite/excel": "~1.3.0",
		"mcamara/laravel-localization": "0.15.*",
		"Jtgrimes/less4laravel": "~0.3",
		"tinymce/tinymce": "4.1.9"

but when I try to composer install it throws me an error

 [InvalidArgumentException]
  Could not find package braunson/laravel-html5-forms at any version for your
   minimum-stability (stable). Check the package spelling or your minimum-sta
  bility

Problem 1
- The requested package braunson/laravel-html5-forms could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

I've read the google group post but I can't get it working, any help please? Thanks you

Problem with installing with Laravel 5

Hey,

I get this error message when trying to install it with Laravel 5 setup.

Installation request for laravel/framework == 5.0.2.0 -> satisfiable by laravel/framework[v5.0.2].

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.