diff --git a/.env.example b/.env.example index 8ee6fd3..0dbde09 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,8 @@ APP_KEY=base64:KcBF6sf3T6Pv8CsflCK93UT6j7Xh6Zdyj+/H1XG1WYc= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://localhost +APP_DOMAIN=www.lqycms.com +APP_SUBDOMAIN=m.lqycms.com DB_CONNECTION=mysql DB_HOST=127.0.0.1 diff --git a/routes/web.php b/routes/web.php index 2ac2f71..b3cade6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -12,7 +12,7 @@ */ //wap路由,要放到最前面,否则解析不到 -Route::group(['domain' => 'm.lqycms.com', 'namespace' => 'Wap'], function () { +Route::group(['domain' => env('APP_SUBDOMAIN'), 'namespace' => 'Wap'], function () { Route::get('/', 'IndexController@index'); Route::get('/tags', 'IndexController@tags'); Route::get('/search', 'IndexController@search');