Sorry, the page you are looking for could not be found.
Route::any('multy1',function(){
? ?return 'route any ';
});
Route::get('user/{$id}',function($id){
? ?return 'ueer_'.$id;
});
卻出現(xiàn)NotFoundHttpException?in?RouteCollection.php line 161:
輸入http://www.test.com/multy1可以正常顯示
2017-01-08
Route::get('user/{$id}',function($id){
? ?return 'ueer_'.$id;
'user/{$id}' ?這里面的id多了一個(gè)$符號(hào) 。去掉就可以了
加$后id就是一個(gè)變量名了。