use AppHttpResourcesProductCollection;
use AppHttpResourcesProductResource;
// for single collection resource in
return new ProductCollection(Product::all()); //or
return ProductResource::collection(Product::all());
//for single resource
return new ProductResource(Product::findOrFail($id));