src/Http/Request.php
public function credential()
    {
        if (!$username = $this->username()) {
            return '';
        }
        $credentials = $username;
        if ($password = $this->password()) {
            $credentials .= ':' . $password;
        }
        return $credentials;
    }
public function credential()
    {
        if (!$username = $this->username()) {
            return '';
        }
        $credentials = $username;
        if ($password = $this->password()) {
            $credentials .= ':' . $password;
        }
        return $credentials;
    }
public function credential ( ) { if ( ! $ username = $ this -> username ( ) ) { return '' ; } $ credentials = $ username ; if ( $ password = $ this -> password ( ) ) { $ credentials .= ':' . $ password ; } return $ credentials ; }
Returns the credential.

@return string|null The credential string.
Returns the credential .