Upgrade from v1 to v2
mainWhen upgrading from version 1 to version 2, note that a new startFrom parameter has been added to the scope methods. To avoid breaking changes caused by argument order, you should switch to using named arguments when calling scopes that pass configuration options like DateRange constants.
// Instead of doing this (v1):
Transaction::ofLast7Days(DateRange::INCLUSIVE);
// Do this (v2) using named arguments:
Transaction::ofLast7Days(customRange: DateRange::INCLUSIVE);