Level 2
There's a prebuilt date rule, have you checked it out?
https://laravel.com/docs/5.8/validation#rule-date
There's also a plenty of optional rules and customizable rules, so I guess you might be interested.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How to create validation rules for date format? Right now my app crashes when someone type 5 digits for year. I use default bootstrap date input type element
this is what I need: 'date_of_entry' => 'required|date_format:Y-m-d'
Please or to participate in this conversation.