Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed "earliest date" validation #117

Merged
merged 4 commits into from
Feb 8, 2023
Merged

Conversation

ash-jc-allen
Copy link
Owner

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.

@ash-jc-allen ash-jc-allen merged commit d6e72de into v6.0 Feb 8, 2023
@ash-jc-allen ash-jc-allen deleted the remove-date-validation branch February 8, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants