Owl\Services\UserService::getUser PHP Метод

getUser() публичный Метод

Get a user by specified keys.
public getUser ( array $wkey ) : stdClass
$wkey array
Результат stdClass | null
    public function getUser(array $wkey)
    {
        return $this->userRepo->find($wkey);
    }

Usage Example

Пример #1
0
 /**
  * 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);
 }