protected function getFieldValueForShow(Field $field)
    {
        if ($field->isFile()) {
            return sprintf("asset('storage/' . %s)", $this->getFieldAccessorValue($field, 'show'));
        }

        return $this->getFieldAccessorValue($field, 'show');
    }
protected function getFieldValueForShow(Field $field)
    {
        if ($field->isFile()) {
            return sprintf("asset('storage/' . %s)", $this->getFieldAccessorValue($field, 'show'));
        }

        return $this->getFieldAccessorValue($field, 'show');
    }
protected function getFieldValueForShow ( Field $ field ) { if ( $ field -> isFile ( ) ) { return sprintf ( "asset('storage/' . %s)" , $ this -> getFieldAccessorValue ( $ field , 'show' ) ) ; } return $ this -> getFieldAccessorValue ( $ field , 'show' ) ; }
Gets the value to use in the show view

@param Field $field

@return string
Gets the value to use in the show view