Fixes for initializaing PostMark
This commit is contained in:
parent
85f12eb871
commit
47050adb57
1 changed files with 5 additions and 5 deletions
|
|
@ -36,10 +36,11 @@ class MailServiceProvider extends MailProvider
|
|||
});
|
||||
|
||||
$this->app['mail.manager']->extend('postmark', function () {
|
||||
return new PostmarkTransport(
|
||||
$this->guzzle(config('postmark.guzzle', [])),
|
||||
config('postmark.secret')
|
||||
);
|
||||
return new HttpClient(array_merge($config, [
|
||||
'base_uri' => empty($config['base_uri'])
|
||||
? 'https://api.postmarkapp.com'
|
||||
: $config['base_uri']
|
||||
]));
|
||||
});
|
||||
|
||||
}
|
||||
|
|
@ -56,4 +57,3 @@ class MailServiceProvider extends MailProvider
|
|||
'mailer' ];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue