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',
];
Also in PHP:
- echo errors of php
- $_SERVER['HTTP_HOST'] site:'pantheon.io'
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQ L: alter table `password_resets` add index `password_resets_email_index`(`email`))
- Override the route parameter names
- codeigniter get last query
- exception $e php $_GET
- How to read a entire file in one line PHP script a. file_content() b. fgetc() c. read_file() d. get_file_contents()
- current datae in php
- clear brower cache in laravel
- USA format date in php
- config file php
- $ php artisan clear cache
- PHP 7.2 extension ext-dom
- Array and string offset access syntax with curly braces is deprecated
- displaying current date in php
- date to format php
- envoyer mail php depuis localhost
- check array key exit php
- Method Illuminate\Database\Eloquent\Collection
- Wordpress login page Background Image / Logo Image
- day + 1 php
- :user="{{auth()->user()}}
- day from date in php
- check if character exists in string php