Laravel Validation Alpha Example

Admin   Laravel   128  2021-03-15 00:20:07

Hi Guys,

Today, I will learn you to create validation alpha in laravel.we will show example of laravel validation alpha.the field under validation must be entirely alphabetic characters.you can simply apply to validation to alpha validation in laravel.in this validation only allow alpha characters.

Here, I will give you full example for simply alpha validation in laravel bellow.

solution

 

$request->validate([

'name' => 'required|alpha',

]);

Route : routes/web.php

 

Route::get('form/create','[email protected]');

Route::post('form/store','[email protected]')->name('form.store');

Controller : app/Http/Controllers/BlogController.php