Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Special Characters Not Allowed Validation in Laravel 5.8

 let’s see example of laravel validation no special characters.

Example -1

use this code for validation:-
 ‘name’ =>  ‘required|regex:/^[a-zA-Z]+$/u’

Example:2-

Use this code for validation:-
 ‘applyjobsforuser’ => ‘required|unique:applyjobs,applyjobsforuser’,

Example-3

use this code for Spacial characters validation
 ‘message’ =>  ‘required||regex:/^[a-zA-Z]+$/u’