Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate phone number with dial code laravel 8

'mobile' => ['required', function ($attribute, $value, $fail) use ($parameters) {
                if (($value + strlen($parameters['code'])) < 15) {
                    $fail('Mobile number is too long');
                }
            }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #phone #number #dial #code #laravel
ADD COMMENT
Topic
Name
8+3 =