validation icon indicating copy to clipboard operation
validation copied to clipboard

Is there a solution to the error rule "after" or the rule "bail"?

Open AnechaS opened this issue 4 years ago • 0 comments

my validate code

$validator->validate([
  'expiresAt' => 'abcde'
  ], [
    'expiresAt' => 'required|date|after:yesterday'
]);

Error detail Type: Exception Message: Expected a valid date, got 'abcde' instead. 2016-12-08, 2016-12-02 14:58, tomorrow are considered valid dates File: /Users/x/myapp/vendor/rakit/validation/src/Rules/Traits/DateUtilsTrait.php Line: 30

AnechaS avatar May 17 '21 13:05 AnechaS