Answers for "time format laravel validation"

PHP
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

Code answers related to "time format laravel validation"

Browse Popular Code Answers by Language