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

Update Carboon usage #52

Merged
merged 2 commits into from
Sep 27, 2019
Merged

Update Carboon usage #52

merged 2 commits into from
Sep 27, 2019

Conversation

adibnaya
Copy link
Contributor

return Carbon::now()->gt($this->valid_until) or Carbon::now()->eq($this->valid_until);

Carbon has gte function, Why not use it?

Change return logic to use Carbon gte instead of checking once for gt and second for eq
Change return logic to use Carbon gte instead of checking once for gt and second for eq
@gerardojbaez gerardojbaez merged commit a8897b8 into gerardojbaez:master Sep 27, 2019
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.

None yet

2 participants