Skip to content

Releases: whitecube/laravel-prices

v1.4.0

16 Sep 08:21
Compare
Choose a tag to compare

v1.3.0 - Laravel 11

29 Jul 12:47
68a2791
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.0...v1.3.0

v1.2.0 - Added currentForType scope

25 Jul 08:11
Compare
Choose a tag to compare

New features:

  • Added a new scope on the Price model: currentForType. Filters prices based on type and activated_at values. Usage:
$products->prices()->currentForType('selling')->first();

v1.1.1 - Fix for price model instantiation with minor value of 0

20 Jul 09:30
Compare
Choose a tag to compare

Previously, price models instantiated with a minor value of 0 would set the amount property to null instead of 0. This has now been corrected.

Allow custom models in config

28 Apr 14:59
55b1dca
Compare
Choose a tag to compare

This release allows you to use your own model via a key in the config (see #5)

Updated dependencies & added new PriceStatus enum

06 Mar 13:32
Compare
Choose a tag to compare

Updated the php-prices dependency to use the latest version. This gives the ability to create prices with Brick\Money\RationalNumber instances.

Additionally, a breaking change was made. The status getter on Whitecube\LaravelPrices\Models\Price model now returns an enum instead of a string.

Laravel 10

16 Feb 10:19
Compare
Choose a tag to compare
v0.0.7

Allow Laravel 10

v0.0.6

09 Mar 16:13
Compare
Choose a tag to compare

Fixed error on Laravel 9 following the introduction of this change: laravel/framework#41257

v0.0.5

19 Jan 11:18
Compare
Choose a tag to compare

Fixed effectiveAt scope not doing an inclusive comparison on the given timestamp

v0.0.4

18 Jan 17:23
Compare
Choose a tag to compare

Added ability to easily override the default price type with the getDefaultPriceType method