Answers for "validation how to add :date translation laravel"

PHP
5

Date time format for laravel validation

$request->validate([
        'start_date' => 'date_format:d/m/Y',
        'end_date' => 'date_format:d/m/Y'
    ]);
Posted by: Guest on May-07-2020
0

in laravel date duration validation rule

[
  'from' =>  ['required', 'date_format:Y-m-d', 'before_or_equal:to'],
  'to'  => ['required', 'date_format:Y-m-d']
]
//@sujay
Posted by: Guest on October-09-2020

Code answers related to "validation how to add :date translation laravel"

Browse Popular Code Answers by Language