Laravel怎樣傳參數(shù)給controller
Laravel怎樣傳參數(shù)給controller
函數(shù)式編程
2018-12-03 04:04:39
TA貢獻(xiàn)1816條經(jīng)驗(yàn) 獲得超6個贊
1. function demo(Request $req){
return $req->input('parameter');
}
2.function demo(){
return \Request::input('parameter');
}
3.function demo(){
return $_REQUEST['parameter'];
}
舉報