Answers for "to check a date format this or that in laravel 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
0

datetime validation in laravel

return [
        'deadline' => 'date_format:Y-m-d H:i:s'
    ];
Posted by: Guest on October-17-2021

Code answers related to "to check a date format this or that in laravel validation"

Browse Popular Code Answers by Language