Answers for "check validity time in laravel"

PHP
0

validate time in laravel

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 June-17-2021

Code answers related to "check validity time in laravel"

Browse Popular Code Answers by Language