Laravel 6 - login with Phone or Email
问题 I'm using Laravel 6 and want user can alternatively login by email or mobile. My attempts so far: Migration is working fine. Registration is working fine Login works fine one at a time either email or mobile with below changes in loginController.php. public function username() { return 'mobile'; // or email } and also login.blade.php for HTML forms from email to mobile. I tried to validate both email and phone by @error directive , like @error('email') || @error('mobile') is-invalid @enderror