ash-jc-allen / laravel-exchange-rates

A Laravel wrapper package for interacting with the exchangeratesapi.io API.
MIT License
432 stars 46 forks source link

Removed "earliest date" validation #117

Closed ash-jc-allen closed 1 year ago

ash-jc-allen commented 1 year ago

Previously, Laravel Exchange Rates only worked with the exchangeratesapi.io API. This API only allowed you to retrieve exchange rates for dates after the 4th January 1999. So, the package used to prevent any dates before this from being used and would throw an AshAllenDesign\LaravelExchangeRates\Exceptions\InvalidDateException exception if you tried to use a date before this.

As of v6.0.0, Laravel Exchange Rates now supports multiple APIs. Some of these APIs allow you to retrieve exchange rates for dates before the 4th January 1999. So, the package no longer prevents you from using dates before this. Instead, it will let the API handle the validation.