We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here are my rules:
public function rules() { return [ 'date_start' => 'date|date_format:d-m-Y|before:date_finish', 'date_finish' => 'date|date_format:d-m-Y|after:date_start', ]; }
Outcomes from varying input:
Input date_start: 10-10-2015 date_finish: 10-10-2016
Messages date_start: "The date start must be a date before date finish." date_finish: Nothing
Input date_start: 10-10-2017 date_finish: 10-10-2016
Input date_start: 10-10-2016 date_finish: 10-10-2016
Please note I've tried with my rules like this
public function rules() { return [ 'date_start' => 'before:date_finish', 'date_finish' => 'after:date_start', ]; }
and this
public function rules() { return [ 'date_start' => 'date|date_format:Y-m-d|before:date_finish', 'date_finish' => 'date|date_format:Y-m-d|after:date_start', ]; }
Any guidance if I'm doing something wrong would be most appreciated! Excellent package btw, big thanks to the creator.
The text was updated successfully, but these errors were encountered:
Date after/before validation rules don't appear to be working. Issue #…
b5c5f1b
…39
This bug is fixed in master branch
master
Sorry, something went wrong.
any fix here? it seems not working
@thanosalexander please open a new issue.
ok @bytestream
No branches or pull requests
Here are my rules:
Outcomes from varying input:
Input
date_start: 10-10-2015
date_finish: 10-10-2016
Messages
date_start: "The date start must be a date before date finish."
date_finish: Nothing
Input
date_start: 10-10-2017
date_finish: 10-10-2016
Messages
date_start: "The date start must be a date before date finish."
date_finish: Nothing
Input
date_start: 10-10-2016
date_finish: 10-10-2016
Messages
date_start: "The date start must be a date before date finish."
date_finish: Nothing
Please note I've tried with my rules like this
and this
Any guidance if I'm doing something wrong would be most appreciated! Excellent package btw, big thanks to the creator.
The text was updated successfully, but these errors were encountered: