用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
# Thinkphp6基础知识 ## Thinkphp控制台命令使用 > ``` > D:\phpstudy_pro\WWW\daiban>php think make:validate api@User //创建User验证器 > ``` > ``` > D:\phpstudy_pro\WWW\daiban>php think make:controller api@v1/Common --plain //创建common控制器 > ``` > ``` > D:\phpstudy_pro\WWW\daiban>php think list > ``` ## Thinkphp控制台命令列表 > version 6.0.2 //版本信息 > > Usage://常用用法 > command [options] [arguments] //命令 可选参数 解释 > > Options://-相关命令-参数-解释 > -h, --help Display this help message// > -V, --version Display this console version > -q, --quiet Do not output any message > --ansi Force ANSI output > --no-ansi Disable ANSI output > -n, --no-interaction Do not ask any interactive question > -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug > > Available commands://可获得的命令集 > build Build App Dirs > clear Clear runtime file > help Displays help for a command > list Lists commands > run PHP Built-in Server for ThinkPHP > version show thinkphp framework version > make > make:command Create a new command class > make:controller Create a new resource controller class > make:event Create a new event class > make:listener Create a new listener class > make:middleware Create a new middleware class > make:model Create a new model class > make:service Create a new Service class > make:subscribe Create a new subscribe class > make:validate Create a validate class > optimize > optimize:route Build app route cache. > optimize:schema Build database schema cache. > route > route:list show route list. > service > service:discover Discover Services for ThinkPHP > vendor > vendor:publish Publish any publishable assets from vendor packages