//访问MemberController下的info的方法
//方法一
//访问路径http://localhost/Laravel/public/member/info
Route::get('member/info','MemberController@info');
//方法二
//访问路径http://localhost/Laravel/public/member
Route::get('member',['uses'=>'MemberController@info']);
//访问控制器并传递参数
//访问路径http://localhost/Laravel/public/member/123
Route::get('member/{id}',['uses'=>'MemberController@test']);
//访问控制器并传递参数,并验证
//访问路径http://localhost/Laravel/public/member/123
Route::get('member/{id}',['uses'=>'MemberController@test'])->where('id','[0-9]+');