Return the public URL for the photo.

@param string $suffix

@return string
962838
public function getUrlAttribute($suffix = '')
    {
        if (!$this->exists) {
            return Cache::rememberForever('missing_photo', function () {
                return static::placeholder('No photo provided');
            });
        }

        if (!$this->processed) {
            return Cache::rememberForever('processing_photo', function () {
                return static::placeholder(
                    "This photo is\nbeing processed\nand will appear\nshortly"
                );
            });
        }

        return "/photo/{$this->photoId}$suffix.jpg";
    }
733351
public function getUrlCahceKey($com,$langcode,$suffix,$segments){
		$key='url:'.$com.':'.$langcode.$suffix;
		$seg='';
		if(is_array($segments)){
			foreach($segments as $k=>$v){
				if(is_object($v)){
					$v=json_encode($v);
					}
				$seg.=$k.'='.$v.',';
				}
			}
		$key.=':'.SHA1($seg);
		return $key;
		}
730258
public function proposeFilename(File $file, $suffix)
    {
        if ($file instanceof UploadedFile) {
            $fileName = $file->getClientOriginalName();
        } else {
            $fileName = $file->getBasename();
        }
        $ret = preg_replace('/[^\w.]+/', '-', strtolower($fileName));
        $ret = preg_replace('/-+/', '-', $ret);
        if ($suffix) {
            $ext = (string)pathinfo($ret, PATHINFO_EXTENSION);
            $fn = (string)pathinfo($ret, PATHINFO_FILENAME);
            $ret = sprintf('%s-%d.%s', trim($fn, '.'), $suffix, $ext);
        }
        return $ret;
    }
1042513
protected function nameArchive($dir, $suffix = null)
    {
        if (!empty($suffix)) {
            $suffix = '_'.preg_replace('/[^0-9a-z]+/i', '-', $suffix);
        }

        return sprintf('%s%s_%s.zip', str_replace(DIRECTORY_SEPARATOR, '_', $dir), $suffix, $this->now->format('Y-m-d_H-i'));
    }
998282
public function getImagesUrl() {
        $url = sprintf($this->getBaseUrl() . '/users/%s/images.json', $this->getUser());

        return Http\ImagesUrl::factory(
            $url,
            $this->getConfig('privateKey'),
            $this->getPublicKey()
        );
    }
1249928
public function getId($suffix = null)
    {
        $id = 'column';

        $id .= '-'.$this->columnName;

        if ($suffix) {
            $id .= '-'.$suffix;
        }

        return HtmlHelper::nameToId($id);
    }
336695
public static function getClassShortName(
        string $class,
        string $suffix = ''
    ): string {
        $baseName = static::getClassBaseName($class);

        return preg_replace(sprintf('/%s$/', $suffix), '', $baseName);
    }
710243
@Deprecated
    private BufferedImage getOriginalImage(String suffix) throws IOException, FlickrException {
        StringBuffer buffer = getOriginalBaseImageUrl();
        buffer.append(suffix);
        return _getImage(buffer.toString());
    }
831924
public function endsWith($suffix)
    {
        return $suffix === ''
        || $suffix === mb_substr(
            $this->contents,
            -strlen((string) $suffix),
            null,
            $this->encoding
        );
    }
357160
public function getPathByConvention($suffix = null)
    {
        if (empty($suffix)) {
            return sprintf('%s_nodes', $this->getBundleName());
        }

        return sprintf('%s_nodes_%s', $this->getBundleName(), $suffix);
    }
1148826
private static function suffixName(string $name, string $suffix)
    {
        return \substr($name, -\strlen($suffix)) === $suffix ? $name : \sprintf('%s%s', $name, $suffix);
    }
927292
public function getUrlAttribute()
    {
        if ($this->isLocalFile()) {
            return url(str_replace('public/', 'storage/', $this->location));
        } elseif ($this->fileExists()) {
            return $this->getS3Image();
        }

        return $this->lostImage();
    }
652817
protected function getImageUrl()
    {
        $imageUrl = "";

        if ($this->getImagePath()) {
            $imageUrl = $this->getImageDirUrl() . $this->getImageName();
        }

        return $imageUrl;
    }
316893
public function toAttr($prefix='', $suffix='') {
        $attrs = array();
        if ($this->width !== FALSE) {
            $attrs[] = 'width="'.addslashes($this->width).'"';
        }
        if ($this->height !== FALSE) {
            $attrs[] = 'height="'.addslashes($this->height).'"';
        }
        return $prefix.implode(' ', $attrs).$suffix;
    }
340224
public function getPublicFormKey($suffix = null)
    {
        $val = sprintf('%s_public_form', $this->getPostType());
        return ($suffix) ? sprintf('%s_%s', $val, $suffix) : $val;
    }
28649
public function url($style = '')
    {
        if ($this->isQueued()) {
            return $this->loadingUrl($style);
        }

        if ($this->getAttribute('filename')) {
            if ($path = $this->path($style)) {
                return $this->config('prefix_url') . $path;
            }
        }

        return $this->defaultUrl($style);
    }
513646
public function getId($suffix = null)
    {
        $id = 'field';
        if ($this->arrayName) {
            $id .= '-'.$this->arrayName;
        }

        $id .= '-'.$this->fieldName;

        if ($suffix) {
            $id .= '-'.$suffix;
        }

        if ($this->idPrefix) {
            $id = $this->idPrefix . '-' . $id;
        }

        return HtmlHelper::nameToId($id);
    }