Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation time hours minutes format

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

    // do other stuff
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #time #hours #minutes #format
ADD COMMENT
Topic
Name
9+1 =