Search
 
SCRIPT & CODE EXAMPLE
 

PHP

mobile no validation laravel

/*
|=======================================================
| Mobile-No & Phone-No Validation in laravel
|=======================================================
*/

// For Digits
1) 'mobile_no' => 'required|numeric|digits:10' // For Fix no of digits
2) 'mobile_no' => 'required|numeric|digits_between:8,10' // For Digits Range

// For Fix No of Strings
1) 'mobile_no' => 'required|string|size:10' // For String Fix-Length
2) 'mobile_no' => 'required|string|min:8|max:10' // For String Range

// Regix
1) 'mobile_no' => 'required|regex:/(01)[0-9]{9}/'
Comment

PREVIOUS NEXT
Code Example
Php :: php grab year from date 
Php :: get template part pass variable 
Php :: php get remote file last modified 
Php :: laravel created_at migration 
Php :: php milliseconds 
Php :: laravel session forget 
Php :: select in php mysql 
Php :: searching and removing element from an array php 
Php :: email validation in laravel 
Php :: laravel middleware route group 
Php :: alert php 
Php :: TreeBuilder::getRootNode()" before creating the root node is not supported, migrate to the new constructor signature instead. 
Php :: laravel eloquent multiple primary key 
Php :: Laravel factory avatars 
Php :: getting current timestamp in php 
Php :: how to run laravel project 
Php :: string remove line breaks php 
Php :: wordpress my account url 
Php :: add to url anchor tag laravel with variable 
Php :: php version check code 
Php :: get the value of href in anchar tag php 
Php :: form_dropdown codeigniter from database is assocative array 
Php :: share link in twitter php 
Php :: collection laravel Gets the last key of an array 
Php :: how to set session timeout in codeigniter 
Php :: checks number only in php 
Php :: restcord Guild Icon outputs 404. 
Php :: laravel with trashed specific 
Php :: php text Cyrillic check 
Php :: php pdo set charset 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =