Aero\Catalog\Traits\HasPrices

This trait can be added to a model class. This trait adds prices to the model. The trait adds the following methods:

 

currentPrices Method

This method returns a collection of the current viable price based upon the date and time.

 

basePrice Method

This method returns the base price.

 

prices Method

This method defines the eloquent relationship with Aero\Catalog\Models\Price.

 

futurePrices Method

This method returns a collection of prices that are set for the future.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful