Answers for "laravel validation date between"

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

public function store(Request $request)

{

    $todayDate = date('m/d/Y');



    $request->validate([

        'name' => 'required',

        'email' => 'required|email',

        'start_date' => 'date_format:m/d/Y|after_or_equal:'.$todayDate

    ]);
}
//@sujay
Posted by: Guest on October-09-2020

Code answers related to "laravel validation date between"

Browse Popular Code Answers by Language