for Laravel env:
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME="yoursendermail@domain.com"
MAIL_PASSWORD="password"
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="no-replay@domain.com"
MAIL_FROM_NAME="Application Name"
xxxxxxxxxx
Since Google has Introduced PassKey feature you dont need to Setup Gmail API
on Google Cloud
Instead Follow this : https://www.jotform.com/help/392-how-to-use-your-gmail-account-as-your-email-sender-via-smtp/