public function getDefaultAddress()
    {
        if ($this->cached_address) {
            return $this->cached_address;
        } else {
            $address = $this
                ->owner
                ->Addresses()
                ->sort("Default", "DESC")
                ->first();
                
            $this->cached_address = $address;
            
            return $address;
        }
    }
public function getDefaultAddress()
    {
        if ($this->cached_address) {
            return $this->cached_address;
        } else {
            $address = $this
                ->owner
                ->Addresses()
                ->sort("Default", "DESC")
                ->first();
                
            $this->cached_address = $address;
            
            return $address;
        }
    }
public function getDefaultAddress ( ) { if ( $ this -> cached_address ) { return $ this -> cached_address ; } else { $ address = $ this -> owner -> Addresses ( ) -> sort ( "Default" , "DESC" ) -> first ( ) ; $ this -> cached_address = $ address ; return $ address ; } }
Get the default address from our list of addreses. If no default
is set, we should return the first in the list.

@return MemberAddress
Get the default address from our list of addreses . If no default is set we should return the first in the list .