有没有办法改变这个网址
http://example.com/search?values[]=foo&values[]=bar&more[]=baz&more[]=fab
http://example.com/search/values/<mutliple-items>/more/<mutliple-items>
答案 0 :(得分:0)
试试这个:
Route::get('search/values/{mutliple_items1}/more/{mutliple_items2}', 'SearchController@search');
答案 1 :(得分:0)
答案由@alexslipknot提供
Route::get('search/values/{slashValues?}/more/{slashMore?}', 'Website\SearchController@searchTest')
->where('slashValues', '(.*)')
->where('slashMore', '(.*)');
它完美无缺