Laravel Validation email Example

Admin   Laravel   98  2021-03-14 23:20:04

Hi Guys,

Today, I will learn you to create validation email in laravel.we will show example of laravel validation email.The field under validation must be formatted as an e-mail address

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

solution

 

$request->validate([

'email' => 'required|email',

]);

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