How Validate Data If Is Exist Must Not Be Empty

[Solved] How Validate Data If Is Exist Must Not Be Empty | Php - Code Explorer | yomemimo.com
Question : how validate data if is exist must not be empty in laravel

Answered by : mohamad-shahkhajeh

 $request->validate([ 'room_id'=>'sometimes|required', 'doctor_id'=>'sometimes|required', 'patient_id'=>'sometimes|required', ]);

Source : | Last Update : Tue, 20 Jul 21

Answers related to how validate data if is exist must not be empty in laravel

Code Explorer Popular Question For Php