Skip to content

Commit 619e41d

Browse files
authored
Update HeloLaravelServiceProvider.php
1 parent b071137 commit 619e41d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/HeloLaravelServiceProvider.php

Lines changed: 4 additions & 4 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(MailManager::class, ['app' => app()]);
69-
$mailerInstance = app()->make(Mailer::class);
68+
$managerInstance = app()->make(MailManager::class, ['app' => app()]);
69+
$instance = app()->make(Mailer::class);
7070

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

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

0 commit comments

Comments
 (0)