連接方式有get post
‘’裏的是目錄 ‘/’是根目錄
function 裏面是輸出
普通路由:
Route::get(’/’,function(){
return “hello Laravel”;
});
路由羣組:
Route::group([‘prefix’=>‘home/test/’],function(){
Route::get(‘test1’,function(){
return “I am studying”;
});
Route::get(‘test2’,function(){
return “I am studying,too”;
});
});