composer create-project topthink/think=5.0.* tp5 --prefer-dist
打开application / config.php
// 域名部署 'url_domain_deploy' => true,
打开application / route.php
// 域名绑定到模块 '__domain__' => [ 'ad.footable.com' => 'admin', //后台 'www.footable.com' => 'index', //前台 'api.footable.com' => 'api' //api ],
相关推荐:最新的10个thinkphp视频教程