let’s see example of laravel validation no special characters.
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/08/blade-page.png)
Example -1
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/08/specialCharacters.png)
use this code for validation:-
‘name’ => ‘required|regex:/^[a-zA-Z]+$/u’
Example:2-
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/08/example-2-1024x311.png)
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/08/example-2-controller-1.png)
Use this code for validation:-
‘applyjobsforuser’ => ‘required|unique:applyjobs,applyjobsforuser’,
Example-3
![](https://www.devopsschool.com/blog/wp-content/uploads/2020/08/example-4.png)
use this code for Spacial characters validation
‘message’ => ‘required||regex:/^[a-zA-Z]+$/u’
![loading](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/gallery-page-loader.gif)
![play](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/playhover.png)
Laravel 5.5 CRUD Tutorial, Introduction And Agenda Overview, Laravel Training Part – 1 DevopsSchool
![loading](https://www.devopsschool.com/blog/wp-content/plugins/youtube-embed-plus/images/gallery-page-loader.gif)
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