Thursday, April 13, 2017

Proper way of creating routes

I'm working on an application where products are being assigned to users. I want to display list of products assigned to the specific user, so every user can see products they own. What route should I use?

  1. users/2/products
  2. products/owned

What controller should be used to return product list?



via bloo79

Advertisement