Skip to content

Commit b071137

Browse files
committed
Possible fix for issue #53
1 parent 34e8d9c commit b071137

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HeloLaravelServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public function register()
6565

6666
protected function bootMailable()
6767
{
68-
$instance = app()->make(Mailer::class);
68+
$instance = app()->make(MailManager::class, ['app' => app()]);
69+
$mailerInstance = app()->make(Mailer::class);
6970

7071
Mail::swap($instance);
71-
72-
$this->app->instance(MailerContract::class, $instance);
72+
$this->app->instance(MailerContract::class, $mailerInstance);
7373
}
7474

7575
private function version($app = null): int

0 commit comments

Comments
 (0)