I'm using this to validate a 24h time format:
'start_time' => ['regex:/^(([01]?[0-9]|2[0-3]):[0-5][0-9])|null/'],
But Laravel doesn't like it and return as not validated
I've tested the code on https://regex101.com/ and it's working correctly, am I missing something? The problem is with the null, because if I take it out, then the hour validator is fine, but not the null
BTW start_time is empty and Laravel convert it into null