Product
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.
at line 50
array
getPricesAttribute()
Get the calculated prices.
at line 69
ProductPrice
price()
Get the products price.
at line 79
BasePrice
basePrice()
Get the products base price.
at line 89
Volume
volume()
Get the products volume.
at line 99
Builder
producer()
Query the producer of the product.
at line 109
Builder
categories()
Query the categories.
at line 119
Builder
filters()
Query the filters.
at line 129
Builder
qualities()
Query the qualities.
at line 139
Image
thumbnail()
Get the products thumbnail.