setUsername($config['username']); $transport->setPassword($config['password']); // Set the mailer \Mail::setSymfonyTransport($transport); return true; } catch (Exception $e) { loging('mail-config', $e->getMessage()); return $e->getMessage(); } } public function setMailGunDriver($config) { if (!$config) { return false; } return true; } }