Skip to content

Instantly share code, notes, and snippets.

@istiyakamin
Created August 11, 2018 16:51
Show Gist options
  • Save istiyakamin/af2121f012b3730bdd92c959f2505c64 to your computer and use it in GitHub Desktop.
Save istiyakamin/af2121f012b3730bdd92c959f2505c64 to your computer and use it in GitHub Desktop.
Laravel isActive login Credentials
/**
* 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