setName('schedule:run') ->setDescription('the schedule:run command'); } protected function execute(Input $input, Output $output) { // 每5分钟执行一次test指令 $this->command('test')->everyFiveMinutes(); parent::execute($input,$output); } }