yemeni-open-source/blade-realtime-input
最新稳定版本:5.1.2
Composer 安装命令:
composer require yemeni-open-source/blade-realtime-input
包简介
Enjoy realtime input validation by passing your rules in your input itself.
README 文档
README
Laravel Realtime input
Enjoy realtime input validation by passing your rules in your input itself.
Requirments
This package is tested with Laravel v8 and it should work on Laravel v7 and v9
| php | ^7.4 | ^8.0 |
| Composer | ^2.3 |
| Laravel | ^8.0 | ^9.0 |
Installation
Install the package by using composer:
composer require yemeni-open-source/blade-realtime-input
Basic Usage
The <input> tag:
<x-realtime-input::strings name="username" rules="required|min:5" />
The <select> tag:
<x-realtime-input::options rules="in:usd,yer" class="btn btn-default custom-select" name="currency" id="currency" > <option value="usd">USD</option> <option value="yer" selected>YER</option> <option value="sar">SAR</option> </x-realtime-input::options>
Advance Usage
You can add id, class , type or other HTML attributes to your input like following
<x-realtime-input::strings rules="required|min:5" name="username" id="user" class="form-control" />
You can add array name like following
<x-realtime-input::strings name="username[]" rules="required|min:5" id="user" class="form-control" />
Localization
The library works as you familiar with laravel validator you can read laravel validation localization.
License
The MIT License (MIT). Please see MIT license File for more information.
统计信息
- 总下载量: 346
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 52
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-03