php 版本必须要大于7.4.0 php artisan make:command Name 执行命令会在console文件下新增Commands文件夹 并在Commands文件夹下生成Name.php文件