Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to enable email verification in laravel breeze

//After installing laravel breeze you just need to follow these two steps

//1: add verified middleware in your dashboard route. eg:
Route::group(['prefix'=>'dashboard/', 'middleware'=>['auth', 'verified']], function(){
//routes under dashboard
}

//2: now in you user model add 'MustVerifyEmail'. eg:
use IlluminateContractsAuthMustVerifyEmail;
class User extends Authenticatable implements MustVerifyEmail
{
    use HasApiTokens, HasFactory, Notifiable;
    //other code
Source by # #
 
PREVIOUS NEXT
Tagged: #enable #email #verification #laravel #breeze
ADD COMMENT
Topic
Name
9+3 =