how validate if one parameter is exist another parameter must exist in laravel

Solutions on MaxInterview for how validate if one parameter is exist another parameter must exist in laravel by the best coders in the world

showing results for - "how validate if one parameter is exist another parameter must exist in laravel"
Valerio
30 Apr 2016
1        $request->validate([
2            'daily_movement_id'=>'required_with:daily_movement',
3            'daily_movement'=>'required_with:daily_movement_id',
4        ]);