Laravel 5.3 date validator: equal to or after start_date

前端 未结 4 1530
不思量自难忘°
不思量自难忘° 2020-12-29 19:04

I\'m using Laravel 5.3 to validate start_date and end_date for an event. end_date should be equal to start_date or the after date. end_date >= start_date

4条回答
  •  醉话见心
    2020-12-29 19:29

    Actually, you can also use after_or_equal and before_or_equal when using at least Laravel version 5.3.31. This may help to avoid having to upgrade to a higher Laravel version.

提交回复
热议问题