Browse Source

wap域名

master
林一峰 8 years ago
parent
commit
10253df75d
  1. 2
      .env.example
  2. 2
      routes/web.php

2
.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

2
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');

Loading…
Cancel
Save