I've a form in my view with two selects that I use to filter PRODUCTS by category or (not and) by shop.
I try to make the route url in this way:
/products/{filter}/{key}
Where filter is category or shop and key the slug of related item. Some example:
/products/category/tablet
/products/category/mac
or
/produtcs/shop/eprice
/products/shop/amazon
Then in my route I think something like:
Route::get('/products/{fitler}/{key}', 'PageController@produtcs');
The question
How can I generate the action url in the form to make this route working?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2HjvLy5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire