liaosp / laravel-validate-ext
laravel validate ext 中文验证
v1.0.0
2021-09-01 07:29 UTC
This package is auto-updated.
Last update: 2024-10-29 06:19:35 UTC
README
📦Laravel 验证中文,手机号,身份号
安装
$ composer require liaosp/laravel-validate-ext -vvv
使用
$data = ['name' => '小廖one']; $v = \Illuminate\Support\Facades\Validator::make($data, ['name' => 'chsAlpha']); $this->assertTrue(!$v->fails());
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT