Laravel 9 : How to Verify Email after registration | Email Verification in Urdu/Hindi
2.4 هزار بار بازدید -
2 سال پیش
-
** Affiliate links ** Gear
** Affiliate links **
Gear I am using for Videos :
Laptop i am using : https://amzn.to/47vP6c7
Mobile I am using for shorts : https://amzn.to/3DSwyW2
Laravel Book I would recommend : https://amzn.to/44cr8jk
Laravel 9 Tutorials.
In this video we are going to discuss about how can we implement email verification in Laravel 9
Laravel 9 Email Verification Guide.
Step # 1 : Fresh Laravel Project
If Laravel is installed globally use command : laravel new ProjectName
If Laravel is not installed globally use command : composer create-project laravel/laravel example-app
Step # 2
Create a new database : email
Step # 3
Migrate tables using command : php artisan migrate
Step # 4
Create Laravel Auth scaffolding using below commands.
-1 composer require laravel/ui
-2 php artisan ui vue --auth
Step # 5
Go to web.php and set email verify to true.
Auth::routes(['verify' = true]); (Note : Greater than, less than signs not supported by YouTube description)
step # 6
Goto User.php Model and change the following
class User extends Authenticatable
to
class User extends Authenticatable implements MustVerifyEmail
Step # 7
Go to HomeController and apply middleware to verified as well.
$this- middleware(['auth', 'verified']); (Note : Greater than, less than signs not supported by YouTube description)
Step # 8
Access .env file and do the configuration for mail
Step # 9
Register a user and test.
Gear I am using for Videos :
Laptop i am using : https://amzn.to/47vP6c7
Mobile I am using for shorts : https://amzn.to/3DSwyW2
Laravel Book I would recommend : https://amzn.to/44cr8jk
Laravel 9 Tutorials.
In this video we are going to discuss about how can we implement email verification in Laravel 9
Laravel 9 Email Verification Guide.
Step # 1 : Fresh Laravel Project
If Laravel is installed globally use command : laravel new ProjectName
If Laravel is not installed globally use command : composer create-project laravel/laravel example-app
Step # 2
Create a new database : email
Step # 3
Migrate tables using command : php artisan migrate
Step # 4
Create Laravel Auth scaffolding using below commands.
-1 composer require laravel/ui
-2 php artisan ui vue --auth
Step # 5
Go to web.php and set email verify to true.
Auth::routes(['verify' = true]); (Note : Greater than, less than signs not supported by YouTube description)
step # 6
Goto User.php Model and change the following
class User extends Authenticatable
to
class User extends Authenticatable implements MustVerifyEmail
Step # 7
Go to HomeController and apply middleware to verified as well.
$this- middleware(['auth', 'verified']); (Note : Greater than, less than signs not supported by YouTube description)
Step # 8
Access .env file and do the configuration for mail
Step # 9
Register a user and test.
2 سال پیش
در تاریخ 1401/06/08 منتشر شده
است.
2,488
بـار بازدید شده