laravel date time validation 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 validate integer between
'item' => 'required|integer|between:1,10',
Example 3: laravel validate date
'day' => 'required|date',
Example 4: laravel validation
Rule::unique('users')->ignore($user->id, 'user_id')