send verification email via gmail smtp server in laravel code example

Example 1: email configuration for gmail in laravel

MAIL_DRIVER=smtpMAIL_HOST=smtp.googlemail.comMAIL_PORT=465MAIL_USERNAME=ENTER_YOUR_EMAIL_ADDRESS(GMAIL)MAIL_PASSWORD=ENTER_YOUR_GMAIL_PASSWORDMAIL_ENCRYPTION=ssl

Example 2: laravel gmail send mail 2020

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=yourEmail@gmail.com
MAIL_PASSWORD=this code is generated read more down
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=yourEmail@gmail.com
MAIL_FROM_NAME=yourName
MAIL_LOG_CHANNEL=NULL