Returns all products contained in the orders associated with a freeproduct.
public static getWithProducts ( Illuminate\Database\Eloquent\Collection $items ) : freeproducts | ||
$items | Illuminate\Database\Eloquent\Collection | |
return | freeproducts | collection of all the products contained in the orders associated with freeproduct, but defined as a property of the model |