I have a laravel 5 website with the following search query url format:
mywebsite.com/s?location=Italy
and i want to achieve this SEO friendly url format:
mywebsite.com/s/location/Italy
And this is in my routes.php:
Route::get('s', 'SearchController@index'); Route::match(['get', 'post'], 'searchResult', 'SearchController@searchResult');
Route::get('s/{id}', 'SearchController@index')->where('id', '[0-9]+');
Any suggestion would be awesome. Thank you!
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2usuF1j
via IFTTT
Aucun commentaire:
Enregistrer un commentaire