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

[5.6] Testable date validation rules when comparison has relative time #23211

Merged

Commits on Feb 20, 2018

  1. make validation time params testable

    Date validation rule parameters containing
    relative time like 'today' or 'next monday'
    do not respective Carbon::setTestNow(). To
    get a date-adjusted value when these keywords
    are present in a date parameter, instantiate
    Carbon over DateTime or strtotime().
    derekmd committed Feb 20, 2018
    Configuration menu
    Copy the full SHA
    7bcfa90 View commit details
    Browse the repository at this point in the history