We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6dc18 commit 9609be9Copy full SHA for 9609be9
src/MailServiceProvider.php
@@ -13,8 +13,8 @@ class MailServiceProvider extends LaravelMailServiceProvider
13
*/
14
protected function registerSwiftTransport()
15
{
16
- $this->app['swift.transport'] = $this->app->share(function ($app) {
17
- return new TransportManager($app);
18
- });
+ $this->app->singleton('swift.transport', function ($app) {
+ return new TransportManager($app);
+ });
19
}
20
0 commit comments