-
-
Save taylorotwell/2a0934fcd5bb59e74640c9e451e69ec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->app->singleton('mailer', function ($app) { | |
$config = $app->make('config')->get('mail'); | |
$mailer = new Mailer( | |
$app['view'], $app['swift.mailer'], $app['events'] | |
); | |
if ($app->bound('queue')) { | |
$mailer->setQueue($app['queue']); | |
} | |
// ... | |
return $mailer; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment