bruno-fernandes/laravel-twitter-handle-validation
Composer 安装命令:
composer require bruno-fernandes/laravel-twitter-handle-validation
包简介
Twitter handle validation.
README 文档
README
Simple twitter handle validation.
Installation
You can install the package via composer:
composer require bruno-fernandes/laravel-twitter-handle-validation
Usage
use Illuminate\Support\Facades\Validator; $validator = Validator::make(['handle' => '@ invalid'], ['handle' => 'twitter_handle']); if ($validator->fails()) { // twitter handle validation failed }
To add a custom validation error message go to views/lang/validation.php file and add:
return [ 'twitter_handle' => 'Twitter handle is not valid.' ];
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email security@brunofernandes.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 757
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-17