In Laravel 5.4 open Auth/LoginController.php
and add this function:
/** * Get the needed authorization credentials from the request. * * @param \Illuminate\Http\Request $request * @return array */ protected function credentials(\Illuminate\Http\Request $request) { //return $request->only($this->username(), 'password'); return ['email' => $request->{$this->username()}, 'password' => $request->password, 'status' => 1]; }
And you are done..!