anourvalar/laravel-form
最新稳定版本:1.9.1
Composer 安装命令:
composer require anourvalar/laravel-form
包简介
Laravel blade components for HTML form elements (input / select / textarea)
README 文档
README
Installation
composer require anourvalar/laravel-form
Features
-
Replacement to the old values on validation failure;
-
Error class addition for invalid elements.
Usage
Input
<x-input type="text" name="foo" value="some text" />
<x-input type="checkbox" name="foo" value="1" :checked="$isChecked" />
<x-input type="radio" name="foo" value="1" checked-value="2" /> <x-input type="radio" name="foo" value="2" checked-value="2" /> <!-- will be checked --> <x-input type="radio" name="foo" value="3" checked-value="2" />
Select
<x-select name="foo" :options="[1 => ['title' => 'One'], 2 => ['title' => 'Two']]" selected="2" />
Textarea
<x-textarea name="foo">Text</x-textarea>
统计信息
- 总下载量: 8.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-24