Many junior laravel developers don’t know what is gmail configuration setup in laravel. If you are working with laravel and you need to setup gmail configuration for sending email in laravel.
if you want to set configuration of gmail then first go to mail.php file, you are work on laravel 4 and laravel 5 it’s not issue, because you can set common setting for both version of laravel framework .
Read also : Laravel 6 Sending Mail using Event Example from Scratch
Read also : SMTP Server doesn't Work to Send Email in Laravel
After setup we can send email via gmail smtp server in laravel 7. Let's check it.
'driver' => smtp, 'host' => smtp.gmail.com, 'port' => 587, 'from' => ['address' => 'firstname.lastname@example.org', 'name' => 'Test'], 'encryption' => tls, 'username' => email@example.com, 'password' => test123, 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false,
this way you can set your gmail account details and try this but if you still find error then you have problem security.
#laravel #gmail-configuration-setup #laravel-mail-setup #mail #gmail-configuration #smtp-server