class CheckoutManager extends Manager

Methods

array
fillable()

Set the fillable fields.

Model
makeFillable(Model $model)

Set fillable fields for the given model.

from Manager
Cart
createCart(Customer $customer)

Create a new cart.

Cart
addToCart(Cart $cart, Product $product, int $quantity)

Add a new cart item.

void
removeFromCart(int $id)

Remove a cart item.

Details

at line 71
protected array fillable()

Set the fillable fields.

Return Value

array

in Manager at line 20
protected Model makeFillable(Model $model)

Set fillable fields for the given model.

Parameters

Model $model

Return Value

Model

at line 18
Cart createCart(Customer $customer)

Create a new cart.

Parameters

Customer $customer

Return Value

Cart

at line 35
Cart addToCart(Cart $cart, Product $product, int $quantity)

Add a new cart item.

Parameters

Cart $cart
Product $product
int $quantity

Return Value

Cart

at line 61
void removeFromCart(int $id)

Remove a cart item.

Parameters

int $id

Return Value

void