Skip to content

Commit

Permalink
Reuse $this->app in service provider (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Apr 2, 2024
1 parent dc77f81 commit c567fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelMsGraphMailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function boot(): void
throw_unless(filled($config['from']['address'] ?? []), ConfigurationMissing::fromAddress());

return new MicrosoftGraphTransport(
app()->make(MicrosoftGraphApiService::class)
$this->app->make(MicrosoftGraphApiService::class)
);
});
}
Expand Down

0 comments on commit c567fa7

Please sign in to comment.