运行
php think run
指定域名运行 要先把域名写入host里 访问时要带端口
php think run -H api.tp.com
多应用
composer require topthink/think-multi-app
安装多应用控制器入口目录
php think build admin(文件目录名)
视图
composer require topthink/think-view
验证码
composer require topthink/think-captcha
中间件
php think make:middleware Check
资源模板文件
php think make:controller admin@Login --plain
创建API控制器
php think make:controller User --api
创建验证器
php think make:validate User