public function __construct(Mailer $mailer, Repository $config) { $this->config = $config->get('server-monitor.notifications.mail'); $this->mailer = $mailer; }