public function generate(Basket $basket)
    {
        $total = 0;

        foreach ($basket->products() as $product) {
            if ($product->taxable) {
                $total = $total + $product->quantity;
            }
        }

        return $total;
    }
public function generate(Basket $basket)
    {
        $total = 0;

        foreach ($basket->products() as $product) {
            if ($product->taxable) {
                $total = $total + $product->quantity;
            }
        }

        return $total;
    }
public function generate ( Basket $ basket ) { $ total = 0 ; foreach ( $ basket -> products ( ) as $ product ) { if ( $ product -> taxable ) { $ total = $ total + $ product -> quantity ; } } return $ total ; }
Generate the Meta Data

@param Basket $basket
@return mixed
Generate the Meta Data