Beispiel #1
0
 /**
  * Execute the console command.
  * Creates a HomeController and calls its cleanLeases function which terminates all expired leases.
  *
  * @return mixed
  */
 public function fire()
 {
     $home_controller = new HomeController(new LaravelDuo\LaravelDuo());
     $cleaner = $home_controller->cleanLeases();
     if ($cleaner) {
         $this->info($cleaner);
     }
 }