DownloadLaravel Phone Validation
Installation
composer require kield-01/laravel-phone-validation
Auto-Discovery
If You would like not to auto-discover this packages' ServiceProvider, You need to put this line into Your
composer.json:
{
"extra": {
"laravel": {
"dont-discover": [
"kield-01/laravel-phone-validation"
]
}
}
}
Provider registration (optional)
If You have this package to be non-discoverable, then You would need to register its ServiceProvider in the app.php :
<?php
return [
'providers' => [
KielD01\PhoneValidation\Providers\ValidationServiceProvider::class,
]
];
Available Validation rules
|