ikromjon1998/laravel-german-license-plate-validator
最新稳定版本:v1.0.9
Composer 安装命令:
composer require ikromjon1998/laravel-german-license-plate-validator
包简介
A Laravel package that provides a custom validation rule to verify the format of German license plate numbers, ensuring compliance with standard German license plate conventions.
README 文档
README
A Laravel package to validate German license plate numbers.
Installation
Install via Composer:
composer require ikromjon1998/german-license-validator
Usage
Use the custom validation rule in your Laravel validators:
$request->validate([ 'license_plate' => 'required|german_license_plate', ]);
Configuration
You can publish the configuration file to customize the regex or error messages:
php artisan vendor:publish --tag=config
The configuration file will be published to config/license-plate.php.
Testing
Run tests with PHPUnit:
vendor/bin/phpunit
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-06