[BD] 如何创建自定义指令 NewYorkBird 2023-06-21 103 阅读1分钟 1.生成指令 php think make:command Hello hello 2.修改 config/console.php <?php return [ 'commands' => [ 'hello' => 'app\command\Hello', ] ]; 3.查看和执行 php think php think hello