ThinkPHP6.0快速开发手册(案例版) / 生成注解路由文件

生成注解路由文件

生成注解路由文件。


生成注解路由route:build

如果你在部署模式下,需要通过指令生成注解路由

生成注解路由的命令:

php think route:build

执行后,会在runtime目录下面生成build_route.php文件。

如果是多应用模式的话,需要加上应用名称调用指令

php think route:build index