Is there a way to turn this url
http://example.com/search?values[]=foo&values[]=bar&more[]=baz&more[]=fab
into something a bit more friendly?
http://example.com/search/values/<mutliple-items>/more/<mutliple-items>
Is there a way to turn this url
http://example.com/search?values[]=foo&values[]=bar&more[]=baz&more[]=fab
into something a bit more friendly?
http://example.com/search/values/<mutliple-items>/more/<mutliple-items>
Try with this:
Route::get('search/values/{mutliple_items1}/more/{mutliple_items2}', 'SearchController@search');
The answer was provided by @alexslipknot
Route::get('search/values/{slashValues?}/more/{slashMore?}', 'Website\SearchController@searchTest')
->where('slashValues', '(.*)')
->where('slashMore', '(.*)');
and it works perfectly