title: Use jquery,ajax to display items with laravel framework
body: <p>I am working on a page that displays products.So far i had a route like :</p>
  
  <pre><code>Route::get('products/{category}/{subcategory}')
  </code></pre>
  
  <p>and in my controller i send back results from database, to display items.
  But i decide to display items with jquery and ajax calls and not with php. So when i navigate to this page i will use $.get() method to take items from server and display them.My problem is that i dont know how to take the parameters (category, subcategory) from the url so i can send them to server and take back the response.Anyone can help?</p>