laravel year validation code example
Example: Date time format for laravel validation
$request->validate([
'start_date' => 'date_format:d/m/Y',
'end_date' => 'date_format:d/m/Y'
]);
$request->validate([
'start_date' => 'date_format:d/m/Y',
'end_date' => 'date_format:d/m/Y'
]);