Search
 
SCRIPT & CODE EXAMPLE
 

PHP

enie letter validation laravel regex

return [
                    'fname' => 'required|max:255|regex:/^[a-zA-ZÑñs]+$/',
                    'lname' => 'required|max:255|regex:/^[a-zA-ZÑñs]+$/',
                    'mname' => 'max:255|alpha',
                     'file' => 'image|mimes:jpg,jpeg,png',
               'contact_no' => 'regex:/^[-0-9+]+$/',
            'date_of_birth' => 'required|date_format:Y-m-d',
                'school_id' => 'required|exists:schools,id',
                'degree_id' => 'required|exists:degrees,id',
        ];
Comment

regex password validation in laravel

'regex:/^(?=.*d)(?=.*[a-z])(?=.*[A-Z]).{8,30}$/'
Comment

laravel validation regex

$this->validate(request(), [
    'projectName' => 
        array(
            'required',
            'regex:/(^([a-zA-Z]+)(d+)?$)/u'
        )
];
Comment

regex sl nic validation laravel

/^([0-9]{9}[x|X|v|V]|[0-9]{12})$/m
Comment

PREVIOUS NEXT
Code Example
Php :: PHP validation/regex for URL 
Php :: transform text to lowercase and replace space with dash php 
Php :: laravel eloquent select one column in array 
Php :: array flat php 
Php :: How to convert a PHP array to JSON object 
Php :: validation in laravel 
Php :: collapse open by default 
Php :: onclick call route laravel 
Php :: composer require no cache 
Php :: migration laravel 
Php :: php session name 
Php :: subtract string php 
Php :: laravel throw function 
Php :: add item to array in php 
Php :: running a php project 
Php :: php credit card validation 
Php :: laravel create new request 
Php :: php convert string to chars 
Php :: Allowed memory size of 1610612736 bytes exhausted 4096 
Php :: Command for single migration in larvel 
Php :: php string to uppercase 
Php :: laravel find many 
Php :: add text to image and save php 
Php :: convert scientific notation to decimal php 
Php :: get numbers from string php 
Php :: php post request 
Php :: laravel hasmany 
Php :: Convert a String to a Number in PHP 
Php :: laravel enum validation 
Php :: laravel call controller method from view 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =