You can create custom validation
https://laravel.com/docs/5.2/validation#custom-validation-rules
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
HI. Do anybody have some idea how to validate input text field which have two years like year begin and year end, like yyyy-yyyy? Year can't be less then 1900 and not bigger then current year.
You can create custom validation
https://laravel.com/docs/5.2/validation#custom-validation-rules
Please or to participate in this conversation.