getUser() 공개 메소드

Get a user by specified keys.
public getUser ( array $wkey ) : stdClass
$wkey array
리턴 stdClass | null
예제 #1
0
파일: OwlUserProvider.php 프로젝트: owl/owl
 /**
  * Retrieve a user by the given credentials.
  *
  * @param array $credentials
  * @return \Illuminate\Contracts\Auth\Authenticatable|null
  */
 public function retrieveByCredentials(array $credentials)
 {
     // Do not allowing login without password.
     if (!array_key_exists('password', $credentials)) {
         return;
     }
     unset($credentials['password']);
     $user = $this->userService->getUser($credentials);
     return $this->getOwlUser($user);
 }