From 6ac714960aac471a42ebdcbcf92f1d989e836716 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 17 Jun 2021 14:29:39 +1000 Subject: [PATCH] Fixes for postmark bindings --- app/Providers/MailServiceProvider.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Providers/MailServiceProvider.php b/app/Providers/MailServiceProvider.php index 9bf088b345..9b0ea91db0 100644 --- a/app/Providers/MailServiceProvider.php +++ b/app/Providers/MailServiceProvider.php @@ -14,11 +14,11 @@ class MailServiceProvider extends MailProvider public function register() { - $this->registerIlluminateMailer(); } public function boot() { + $this->registerIlluminateMailer(); } @@ -32,13 +32,13 @@ class MailServiceProvider extends MailProvider return $app->make('mail.manager')->mailer(); }); - $this->app['mail.manager']->extend('postmark', function ($app, $postmark) { - $postmark = new PostmarkTransport( + $this->app['mail.manager']->extend('postmark', function () { + + return new PostmarkTransport( $this->guzzle(config('postmark.guzzle', [])), config('postmark.secret') ); - return $postmark; }); $this->app->afterResolving('mail.manager', function (GmailTransportManager $mailManager) {