wdda/laravel-uikit-form 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wdda/laravel-uikit-form

Composer 安装命令:

composer require wdda/laravel-uikit-form

包简介

This package for render form as uikit

README 文档

README

Software License

Small and smart package for generate html form elements as Uikit mark!

Example

Input:

{!! formInput('my_name')->value('value 123')->class('uk-input') !!}

Result:

<div class="uk-margin-small-bottom">
   <label @if($id)for="{{ $id }}"@endif>{{ $label }}</label>
   <div class="uk-form-controls">
       <input @if(!$class)class="uk-input" @endif
           @if($id)id="{{ $id }}" @endif
           @if($name)name="{{ $name }}" @endif
           value="{{ $value }}"{!! $attributes !!}>
   </div>
</div>
formInput('Input')
    ->label('Input')
    ->id('id')
    ->class('uk-input')
    ->attributes(['attribute1', 'attribute2' => 'value'])
    ->value('value')
formTextarea('Textarea')
    ->label('Textarea')
    ->id('id')
    ->class('uk-input')
    ->attributes(['attribute1', 'attribute2' => 'value'])
    ->value('value')
    ->rows(8)
formSelect('Select')
    ->label('Select')
    ->id('id')
    ->class('uk-input')
    ->attributes(['attribute1', 'attribute2' => 'value'])
    ->value('value')
formCheckbox('Checkbox')
    ->label('Checkbox')
    ->id('id')
    ->class('uk-input')
    ->attributes(['attribute1', 'attribute2' => 'value'])
    ->value('value')
formRadio('Radio')
    ->label('Radio')
    ->id('id')
    ->class('uk-input')
    ->attributes(['attribute1', 'attribute2' => 'value'])
    ->value('value')

Install

Install package:

$ composer require wdda/laravel-uikit-form

Update package

$ composer update wdda/laravel-uikit-form

Open your config/app.php and add the following to the providers array:

WDDA\LaravelUikitForm\LaravelUikitFormProvider::class,

Security

If you discover any security related issues, please email dima@wdda.pro instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固