Skip to content

Instantly share code, notes, and snippets.

@Sarav-S
Last active September 23, 2016 02:11
Show Gist options
  • Save Sarav-S/c0c141f57ae2d5735f8a578eb3705c18 to your computer and use it in GitHub Desktop.
Save Sarav-S/c0c141f57ae2d5735f8a578eb3705c18 to your computer and use it in GitHub Desktop.
<?php
/**
* Validate a user against the given credentials.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param array $credentials
* @return bool
*/
public function validateCredentials(UserContract $user, array $credentials)
{
$plain = $credentials['password'];
return $this->hasher->check($plain, $user->getAuthPassword());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment