protected function formatRelationshipInput($value, Field $field)
    {
        $value = trim($value);

        if ($field->getOption('multiple_values')) {
            $value = $value ? explode(',', $value) : array();
        }

        return $value;
    }
protected function formatRelationshipInput($value, Field $field)
    {
        $value = trim($value);

        if ($field->getOption('multiple_values')) {
            $value = $value ? explode(',', $value) : array();
        }

        return $value;
    }
protected function formatRelationshipInput ( $ value , Field $ field ) { $ value = trim ( $ value ) ; if ( $ field -> getOption ( 'multiple_values' ) ) { $ value = $ value ? explode ( ',' , $ value ) : array ( ) ; } return $ value ; }
Gets the formatted value of a relationship input.

@param string                                 $value
@param \Frozennode\Administrator\Fields\Field $field

@return mixed array | string
Gets the formatted value of a relationship input .