I am creating an API and should accept the date and time value as the format Ym-dTH:i:s . The peculiarity of this is that there T in the middle between date and time.
So how to write a validation rule to verify this?
'start_at' => 'required|date_format:Ymd H:i:s'
This is what I have.
source share