src/AuthorizesWithBasicAuth.php
protected function getCredentials()
    {
        if (empty($this->username) || empty($this->password)) {
            throw new \Exception('Basic authentication requires a $username & $password property.');
        }

        return [$this->username, $this->password];
    }
protected function getCredentials()
    {
        if (empty($this->username) || empty($this->password)) {
            throw new \Exception('Basic authentication requires a $username & $password property.');
        }

        return [$this->username, $this->password];
    }
protected function getCredentials ( ) { if ( empty ( $ this -> username ) || empty ( $ this -> password ) ) { throw new \ Exception ( 'Basic authentication requires a $username & $password property.' ) ; } return [ $ this -> username , $ this -> password ] ; }
Get the authorization credentials for a request

@return null|array
@throws \Exception
Get the authorization credentials for a request