public function newMailer() { $config = $this->getConfig(); $transportManager = new TransportManager($this->app); $transport = $transportManager->driver($config['mail']['driver']); $swiftMailer = new \Swift_Mailer($transport); return new LaravelMailer($this->viewFactory, $swiftMailer); }