I'm making this query
$ventas = VentasProductos::select('id_factura','=' ,$id);
to a database table from a FacturaController Controller and when I check the number of elements, it returns me that there are elements but at the time of showing them in a view it does not return values to me. How can I solve this?