框架如何绑定域名到模块

如题,如何将域名绑定到某个模块上
已邀请:

herd21 - 这人好懒..没有简介...

赞同来自:

可以使用域名路由实现,参考TP5手册的域名路由章节
 
// blog子域名绑定到blog模块
Route::domain('blog','blog');
// 完整域名绑定到blog模块
Route::domain('blog.domain.cn','blog');
// IP绑定到blog模块
Route::domain('114.23.4.5','blog');

要回复问题请先登录注册