承接 braunson/laravel-html5-forms 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

braunson/laravel-html5-forms

Composer 安装命令:

composer require braunson/laravel-html5-forms

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 1.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 87
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 85
  • Watchers: 6
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固