Пример #1
0
 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();
     }
 }
Пример #2
0
 public function testSendDailyMail()
 {
     Config::set('mailDriver', 'file');
     DailyMail::sendDailyMail();
 }