Skip to content

Commit

Permalink
#119 fix mailDriver function
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ichikawa committed Mar 16, 2020
1 parent e6dbbea commit 082c11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SendGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function sendgrid($params)
*/
private function mailDriver()
{
return function_exists('config') ? config('mail.driver') : env('MAIL_DRIVER');
return function_exists('config') ? config('mail.default', config('mail.driver')) : env('MAIL_MAILER', env('MAIL_DRIVER'));
}

/**
Expand Down

0 comments on commit 082c11e

Please sign in to comment.