阅读(3831) (0)

Laravel 8 before_or_equal:date

2021-06-25 11:53:22 更新

验证字段必须是在给定日期之前或与之相同的日期。这个日期值将会被传递给 PHP 的 strtotime 函数来计算。除此之外,像 after 规则一样,验证中另一个字段的名称可以作为值传递给 date