ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
https://blog.csdn.net/weixin_45042868/article/details/117674575?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-9.essearch_pc_relevant&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-9.essearch_pc_relevant 1.下载ThinkPHP6.0框架 composer create-project topthink/think tp 开启多应用模式 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. 2.安装JWT扩展 a. composer require firebase/php-jwt b. composer require thans/tp-jwt-auth php think jwt:create