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

laravel validation regex

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

PREVIOUS NEXT
Code Example
Php :: migrate specific migration laravel 
Php :: max_input_time in wordpress 
Php :: php 3 digit decimal 
Php :: php string cut first x characters 
Php :: select join distinct 
Php :: how to get the index in foreach loop in laravel 
Php :: laravel Route::group definition 
Php :: php foreach string char 
Php :: get custom field 
Php :: wordpress get archive title 
Php :: laravel validate telephone number 
Php :: laravel https assets 
Php :: A table was not found You might have forgotten to run your migrations. You can run your migrations using php artisan migrate. Pressing the button below will try to run your migrations. 
Php :: php regex remove file extension 
Php :: php is string 
Php :: Where is the php.ini file on a Linux/CentOS 
Php :: php delete array item by value 
Php :: get current date laravel 
Php :: laravel inline if 
Php :: Laravel loop with counter 
Php :: hashing passwords in yii 1 
Php :: convert space to 20 php 
Php :: check if number is float in php 
Php :: faker image laravel 
Php :: phpMyAdmin is not able to cache templates 
Php :: remove create in nova resource 
Php :: wp get term link 
Php :: laravel controller return message 
Php :: convert string to date php 
Php :: whereyear laravel 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =