Laravel 5.7 check if email is verified Laravel 5.7 check if email is verified laravel laravel

Laravel 5.7 check if email is verified


Instead of checking the column directly, you can use the method included with the User model:

$user->hasVerifiedEmail()

If you read the docs, you'll see Laravel also includes a middleware named 'verified' for limiting access to verified users.


Please refer this blog. You can add middleware for the same