tp6多应用

composer require topthink/think-multi-app  
  1. 删除原有的controller文件 (必须删)

  2. 修改配置文件开启多应用模式 修改config/app.php文件,没有的话不用更改

// 开启多应用 ‘auto_multi_app’ => true

  1. 创建应用 php think build demo demo是应用名称,可自行修改

猜你喜欢

转载自blog.csdn.net/qq_24023151/article/details/127411595