Answers for "laravel date time validation"

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
1

laravel date validation

'dob' => 'required|date_format:Y-m-d|after_or_equal:1920-01-01'
Posted by: Guest on May-12-2021
0

laravel validation time hours minutes format

public function store(Illuminate\Http\Request $request)
{
    $this->validate($request, [
        'time_start' => 'date_format:H:i',
        'time_end' => 'date_format:H:i|after:time_start',
    ]);

    // do other stuff
}
Posted by: Guest on March-26-2021
2

laravel validate integer between

'item' => 'required|integer|between:1,10',
Posted by: Guest on October-21-2020
3

laravel validate date

'day'            =>  'required|date',
Posted by: Guest on January-25-2021
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 date time validation"

Browse Popular Code Answers by Language