From 10253df75d88c9869a37c638f00e84301fe09848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=B8=80=E5=B3=B0?= <1feng.0595@gmail.com> Date: Sat, 27 May 2017 19:46:01 +0800 Subject: [PATCH] =?UTF-8?q?wap=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 ++ routes/web.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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');