Hi Guys,
In this tutorial laravel 6 required_with Validation. You can validate required_with validation rules.The field under validation must be present and not empty only if any of the other specified fields are present.
If there is a dependent item (multiple values ??separated by commas: foo, bar, …) and the item has a value, and the specified item has a value (empty or not null).
Link :- https://www.nicesnippets.com/blog/laravel-6-required-with-validation-example
#laravel #laravel6