wearepixel / laravel-cart

MIT License
5 stars 1 forks source link

Add items with no price #9

Closed joelwmale closed 2 months ago

joelwmale commented 2 months ago

This fixes an issue with adding items with no price.

It currently works when doing Cart::add(id, name, null, quantity) but it does not when passing in an array:

Cart::add([
'id' => '',
'name' => '',
'quantity' => ''

This PR fixes that.