1 $request->validate([
2 'start_date' => 'date_format:d/m/Y',
3 'end_date' => 'date_format:d/m/Y'
4 ]);
1public function store(Illuminate\Http\Request $request)
2{
3 $this->validate($request, [
4 'time_start' => 'date_format:H:i',
5 'time_end' => 'date_format:H:i|after:time_start',
6 ]);
7
8 // do other stuff
9}