I am trying to validate a field but I am not able to do it. I have this Request Validator
public function rules()
{
return [
...
'input' => 'required|url|email',
];
}
What I want to do is to validate if the input is url or email, can be one of them, what can I do? Here I am validating both cases, but the input can be one of them. Thanks.
urlandemailrules check to determine validity: github.com/laravel/framework/blob/9.x/src/Illuminate/Validation/… and github.com/laravel/framework/blob/9.x/src/Illuminate/Validation/….