php - Laravel 4.2 Date Validation
How do I validate a date in such a way that it only accepts today and any date older than today? I know
before:today accepts older dates while
after:today accepts dates starting tomorrow on-wards.
$rules = [ 'start_at' => 'required|date|date_format:Y-m-d|after:yesterday', 'end_at' => 'required|date|date_format:Y-m-d|after:start_at', ];
I want to be able to start a task today and end today.
From my understanding, you want the
end_atto on the same date or after
start_atbut not before
What I have done so far, The
end_atneed to be relevant with the
start_at(same or after the