Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validate time in laravel

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 laracasts.com #
 
PREVIOUS NEXT
Tagged: #validate #time #laravel
ADD COMMENT
Topic
Name
2+6 =