Error
is estimated to be inside the route as a result of the temporary handling of the project as follows
Route::get (' about/', ' index/about ');//About Gigu route::get (' news/:nc_id ', ' News/index ', [],[' nc_id ' = ' \d+ ') ]); Route::get (' Newsdetail/:id ', ' news/detail ', [' ext ' + = ' html '], [' id ' = ' \d+ ']); Route::get (' product/', ' product/index '); Route::get (' Join/:type ', ' index/join ', [],[' type ' = ' \d+ ']);//1 Careers 2 Contact Us route::get (' join/', ' Index/join ');//1 Careers 2 Contact Us
Solution to add a judge whether it is a PC or mobile phone side
Strpos (Strtolower ($_server[' http_host ')), $MobDomain)
$WebDomain= "www.dome.com";//PC-Side$MobDomain= "m.dome.com";//mobile phone sideRoute::d Omain ($WebDomain, ' Index '); Route::d Omain ($MobDomain, ' Mobile ');//access to the PC or mobile phone to resolve the error: The module does not exist: mobileif(Strpos(Strtolower(($_server[' Http_host ']),$MobDomain) !==false) {Route:: Group ([' prefix ' = ' mobile/'),function () {//route::get ('/', ' index/index ');Route::get (' about/', ' index/about ');//about GiguRoute::get (' news/:nc_id ', ' news/index ', [],[' nc_id ' = ' \d+ ']); Route:: Get (' newsdetail/:id ', ' news/detail ', [' ext ' = ' + ' html '], [' id ' = ' \d+ ')]); Route:: Get (' product/', ' Product/index '); Route:: Get (' Join/:type ', ' index/join ', [],[' type ' = ' \d+ ']);//1 Careers 2 Contact UsRoute::get (' join/', ' index/join ');//1 Careers 2 Contact Us }, [' domain ' =$MobDomain]);}Else{Route:: Group ([' prefix ' = ' index/'),function () {//route::get ('/', ' index/index ');Route::get (' about/', ' index/about ');//about GiguRoute::get (' news/:nc_id ', ' news/index ', [],[' nc_id ' = ' \d+ ']); Route:: Get (' newsdetail/:id ', ' news/detail ', [' ext ' = ' + ' html '], [' id ' = ' \d+ ')]); Route:: Get (' product/', ' Product/index '); Route:: Get (' Join/:type ', ' index/join ', [],[' type ' = ' \d+ ']);//1 Careers 2 Contact UsRoute::get (' join/', ' index/join ');//1 Careers 2 Contact Us }, [' domain ' =$WebDomain]);}
Routing duplicate module does not exist