Created
August 11, 2018 16:51
-
-
Save istiyakamin/af2121f012b3730bdd92c959f2505c64 to your computer and use it in GitHub Desktop.
Laravel isActive login Credentials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment