Laravel phone validation package
Laravel Phone Validator (most phone number formats), (*1)
Phone Validator is a simple validator phone number., (*3)
To get started with Phone Validator, simply run:, (*4)
composer require fixik/phone-validator
Next, register the Fixik\Validator\PhoneValidatorServiceProvider
in your config/app.php
file:, (*5)
'providers' => [ // Other service providers... Fixik\Validator\PhoneValidatorServiceProvider::class, ],
From your validator use method phone
, (*6)
resources/lang/en/validation.php
, (*7)
'phone' => 'The :attribute field contains an invalid phone number'
Phone Validator is open-sourced software licensed under the MIT license, (*8)