class Product extends Model

Properties

protected array $appends The accessors to append to the model's array form.
protected array $dispatchesEvents The registered model events.

Methods

static void
boot()

The "booting" method of the model.

array
getPricesAttribute()

Get the calculated prices.

ProductPrice
price()

Get the products price.

BasePrice
basePrice()

Get the products base price.

Volume
volume()

Get the products volume.

Builder
producer()

Query the producer of the product.

Builder
categories()

Query the categories.

Builder
filters()

Query the filters.

Builder
qualities()

Query the qualities.

Image
thumbnail()

Get the products thumbnail.

Details

at line 36
static protected void boot()

The "booting" method of the model.

Return Value

void

at line 50
array getPricesAttribute()

Get the calculated prices.

Return Value

array

at line 69
ProductPrice price()

Get the products price.

Return Value

ProductPrice

at line 79
BasePrice basePrice()

Get the products base price.

Return Value

BasePrice

at line 89
Volume volume()

Get the products volume.

Return Value

Volume

at line 99
Builder producer()

Query the producer of the product.

Return Value

Builder

at line 109
Builder categories()

Query the categories.

Return Value

Builder

at line 119
Builder filters()

Query the filters.

Return Value

Builder

at line 129
Builder qualities()

Query the qualities.

Return Value

Builder

at line 139
Image thumbnail()

Get the products thumbnail.

Return Value

Image