class RequiredIf (View source)
| callable|bool | $condition | The condition that validates the attribute. | 
| void | __construct(callable|bool $condition) Create a new required validation rule based on a condition. | |
| string | __toString() Convert the rule to a validation string. | 
Create a new required validation rule based on a condition.
Convert the rule to a validation string.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/8.x/Illuminate/Validation/Rules/RequiredIf.html