PHP code example of braunson / laravel-html5-forms

1. Go to this page and download the library: Download braunson/laravel-html5-forms library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

braunson / laravel-html5-forms example snippets


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

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

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

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

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

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

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

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

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

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

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

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

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

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