Trying to validate an valid 24 hour time.
Request dump,
#parameters: array:6 [▼
"_token" => "mP2b6fmvlQG6SMgMwz9VI9kZEXtjXqp7hXUjdWdZ"
"email" => null
"ageLimit" => null
"timeFrom" => "0:00"
"timeTo" => "0:00"
"alowed_days" => array:7 [▶]
]
Controller validation
$validation = $request = $request->validate([
'email' => 'email|required',
'ageLimit' => 'required|numeric',
'timeFrom' => 'date_format:H:i',
'timeTo' => 'date_format:H:i',
)];
This is failing for some reason? I'm getting "The time from does not match the format H:i."
What am I not understanding?