/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $productos = product::all();
     return Response::json($productos, 200);
 }
 public function index()
 {
     $products = product::all();
     return view('admin.index', compact('products'));
 }
 public function lists()
 {
     $products = product::all();
     return view('products.list', ['products' => $products]);
 }