Beispiel #1
0
 public function fire()
 {
     $days = $this->argument('days');
     try {
         if (!is_numeric($days)) {
             throw new \Exception("days must be numeric");
         }
         $this->jobRepo->clean($days);
         $this->logRepo->clean($days);
     } catch (\Exception $e) {
         $this->out('Error cleaning database: ' . $e->getMessage());
     }
 }