public function boot() { switch ($this->argv[1]) { case "install": return $this->install(); case "createAdmin": return $this->createAdmin(); case "resetTraffic": return $this->resetTraffic(); case "sendDiaryMail": return DailyMail::sendDailyMail(); default: return $this->defaultAction(); } }
public function testSendDailyMail() { Config::set('mailDriver', 'file'); DailyMail::sendDailyMail(); }