composer require mehedimi/laravel-sendgridFirst you need to add the sendgrid api config services.php file
'sendgrid' => [
'api_key' => env('SENDGRID_API_KEY')
]
Next you need to add the sendgrid mailable config into mail.php file on mailers array
'sendgrid' => [
'transport' => 'sendgrid',
'options' => [
// optional sendgrid `/mail/send` endpoints value (if you need)
]
],
Third step you need to add SENDGRID_API_KEY environment variable on the .env file and set value of MAIL_MAILER to sendgrid
