public function getAddressBlock()
    {
        if (! $this instanceof Model) {
            throw new EloquentModelNotFoundException();
        }

        $fields = $this->addressBlockFields();

        $output = [];

        if (! empty($fields)) {
            foreach($fields as $field) {
                $fieldValue = $this->getAddressFieldValue($field);

                if (! empty($fieldValue)) {
                    $output[] = $fieldValue;
                }
            }
        }

        return implode('<br>', $output);
    }
public function getAddressBlock()
    {
        if (! $this instanceof Model) {
            throw new EloquentModelNotFoundException();
        }

        $fields = $this->addressBlockFields();

        $output = [];

        if (! empty($fields)) {
            foreach($fields as $field) {
                $fieldValue = $this->getAddressFieldValue($field);

                if (! empty($fieldValue)) {
                    $output[] = $fieldValue;
                }
            }
        }

        return implode('<br>', $output);
    }
public function getAddressBlock ( ) { if ( ! $ this instanceof Model ) { throw new EloquentModelNotFoundException ( ) ; } $ fields = $ this -> addressBlockFields ( ) ; $ output = [ ] ; if ( ! empty ( $ fields ) ) { foreach ( $ fields as $ field ) { $ fieldValue = $ this -> getAddressFieldValue ( $ field ) ; if ( ! empty ( $ fieldValue ) ) { $ output [ ] = $ fieldValue ; } } } return implode ( '<br>' , $ output ) ; }
Return the address block
@return string
@throws EloquentModelNotFoundException
Return the address block