route verification.notice not defined. laravel code example

Example: Route [verification.notice] not defined.

Add verify inside the auth routes and other routes where you want only verified
users can access addded 'verified' middleware and inside the User implement
MustVerifyEmail class.

#### Inside routes\web.php

Auth::routes(['verify' => true]);

Route::group(['middleware' => ['auth', 'verified']], function() {
	.....
});

#### Inside App\Models\User.php

class User extends Authenticatable implements MustVerifyEmail
{
    use HasFactory, Notifiable, HasApiTokens, HasRoles;
    
    ...
}

Tags:

Misc Example