Vote count:
0
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 onwards.
$rules = [
'start_at' => 'required|date|date_format:Y-m-d|after:yesterday',
'end_at' => 'required|date|date_format:Y-m-d|after:start_at',
];
asked 49 secs ago
Laravel 4.2 Date Validation
Aucun commentaire:
Enregistrer un commentaire