validasi datetime di Laravel
return [
'deadline' => 'required|date_format:Y-m-d H:i:s|after_or_equal:today',
];
Basel Rabia
return [
'deadline' => 'required|date_format:Y-m-d H:i:s|after_or_equal:today',
];
$request->validate([
'start_date' => 'date_format:d/m/Y',
'end_date' => 'date_format:d/m/Y'
]);
'dob' => 'required|date_format:Y-m-d|after_or_equal:1920-01-01'
@if ($errors->any())
@foreach ($errors->all() as $error)
<div>{{$error}}</div>
@endforeach
@endif
return [
'deadline' => 'date_format:Y-m-d H:i:s'
];
'start_date' => 'required|date|after:tomorrow'