[Solved] How to Login with username, email, phone number

[ad_1]

You can use a OR statement to check multiple conditions:

<input id="login" type="text" class="form-control {{ (@error->has('phone') || @error->has('email') ||  @error->has('name')) ? 'is-invalid' : '' }}" name="email" value="{{ old('phone') ?: old('email') ?: old('name') }}" required autofocus>

[ad_2]

solved How to Login with username, email, phone number