Skip to content

Commit 9609be9

Browse files
author
Obura Tongoi
authored
Update MailServiceProvider.php
Add Laravel 5.4 Support by replacing share with singleton
1 parent 9c6dc18 commit 9609be9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MailServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class MailServiceProvider extends LaravelMailServiceProvider
1313
*/
1414
protected function registerSwiftTransport()
1515
{
16-
$this->app['swift.transport'] = $this->app->share(function ($app) {
17-
return new TransportManager($app);
18-
});
16+
$this->app->singleton('swift.transport', function ($app) {
17+
return new TransportManager($app);
18+
});
1919
}
2020
}

0 commit comments

Comments
 (0)