创建 laravel Artisan Console

配置自己创建的artisan console 流程如下:”
格式:php artisan make:command 命令文件名 
例子:php artisan make:command CreateLogicCommand
然后就完成了,下面还有一个handle方法。当你使用命令的时候,就会自动走这里面的方法:
/**
* Execute the console command.
*在命令执行时被调用
* @return mixed
*/
public function handle()
{
}

0 个评论

要回复文章请先登录注册