class Cart extends Model

Methods

customer()

Get the carts owner.

items()

Get the cart items.

Collection
getDeliveriesAttribute()

Get the deliveries.

Collection
processable()

Filter the deliveries.

Collection
producers(array $ids)

Get the producers of the cart items.

int
shipping()

Get the shipping.

int
subtotal()

Get the subtotal.

int
total()

Get the total amount.

Collection
vat()

Get the vat.

Collection
transformVat(Collection $vat)

Transform the vat.

Details

at line 14
customer()

Get the carts owner.

at line 22
items()

Get the cart items.

at line 32
Collection getDeliveriesAttribute()

Get the deliveries.

Return Value

Collection

at line 44
Collection processable()

Filter the deliveries.

Return Value

Collection

at line 55
Collection producers(array $ids)

Get the producers of the cart items.

Parameters

array $ids

Return Value

Collection

at line 70
int shipping()

Get the shipping.

Return Value

int

at line 80
int subtotal()

Get the subtotal.

Return Value

int

at line 90
int total()

Get the total amount.

Return Value

int

at line 100
Collection vat()

Get the vat.

Return Value

Collection

at line 113
protected Collection transformVat(Collection $vat)

Transform the vat.

Parameters

Collection $vat

Return Value

Collection