用laravel 寫接口 , 如何在Controller 里獲取put參數(shù)?(也就是下面的{goodsId},也就是實(shí)際URL中的2)$api->put('/user/collection/{goodsId}', 'CollectionGoodsController@put');實(shí)際URL: HTTP S://xxx/api/user/collection/2
??! 表單參數(shù) 和 查詢參數(shù) 是沒有的,就只有路徑里面的那個參數(shù)PS:難道 Request::path() 然后在拆分字符串?
laravel restful 如何獲取delete/put 的參數(shù)(注意是path中的)。
繁華開滿天機(jī)
2019-03-04 09:10:11