Example #1
0
 /**
  * Add a new Artisan command event to the schedule.
  *
  * @param  string  $command
  * @param  array  $parameters
  * @return \Illuminate\Console\Scheduling\Event
  */
 public function command($command, array $parameters = [])
 {
     if (class_exists($command)) {
         $command = Container::getInstance()->make($command)->getName();
     }
     return $this->exec(Application::formatCommandString($command), $parameters);
 }