thinkphp6 安装多应用模块

开启多应用模式

1.首先刪除app目录下所有其他文件

2.安装多应用模式扩展: composer require topthink/think-multi-app

3.创建三大应用index(前端),admin(后台),common(公共应用)

命令:php think build index

命令:php think build admin

命令:php think build common

注意:如果没有安装think-multi-app, 使用php think build xx会报错:Command "build" is not defined.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容