Locker\Helpers\Helpers::getClient PHP 메소드

getClient() 정적인 공개 메소드

Checks the authentication.
static public getClient ( String $username, $password ) : Model
$username String
리턴 Model
    static function getClient($username, $password)
    {
        return (new \Client())->where('api.basic_key', $username)->where('api.basic_secret', $password)->first();
    }

Usage Example

 /**
  * Constructs a new base controller.
  */
 public function __construct()
 {
     $this->lrs = Helpers::getLrsFromAuth();
     list($username, $password) = Helpers::getUserPassFromAuth();
     $this->client = Helpers::getClient($username, $password);
 }
All Usage Examples Of Locker\Helpers\Helpers::getClient