validate date format in laravel code example
Example 1: Date time format for laravel validation
$request->validate([
'start_date' => 'date_format:d/m/Y',
'end_date' => 'date_format:d/m/Y'
]);
Example 2: laravel date validation
'dob' => 'required|date_format:Y-m-d|after_or_equal:1920-01-01'