wdda/laravel-uikit-form
Composer 安装命令:
composer require wdda/laravel-uikit-form
包简介
This package for render form as uikit
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-15