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’
Laravel 5.5 CRUD Tutorial, Introduction And Agenda Overview, Laravel Training Part – 1 DevopsSchool
Latest posts by sam (see all)
- AJAX Crud with laravel 5.8 - October 29, 2021
- Upload image in the database with local folder and image send mail. - October 23, 2020
- How to protect .env file in Laravel. - September 10, 2020