Data Format walidacji Laravel
$request->validate([
'start_date' => 'date_format:d/m/Y',
'end_date' => 'date_format:d/m/Y'
]);
Grumpy Grasshopper
$request->validate([
'start_date' => 'date_format:d/m/Y',
'end_date' => 'date_format:d/m/Y'
]);
[
'from' => ['required', 'date_format:Y-m-d', 'before_or_equal:to'],
'to' => ['required', 'date_format:Y-m-d']
]
//@sujay