src/Traits/HasS3File.php
public function getRealUrl($url)
	{
		if (config('services.cdn.base_url')) {
			$s3_url = self::$s3_base_url . config('filesystems.disks.s3.bucket') . '/';

			return str_replace($s3_url, config('services.cdn.base_url'), $url);
		} else {
			return $url;
		}
	}
public function getRealUrl($url)
	{
		if (config('services.cdn.base_url')) {
			$s3_url = self::$s3_base_url . config('filesystems.disks.s3.bucket') . '/';

			return str_replace($s3_url, config('services.cdn.base_url'), $url);
		} else {
			return $url;
		}
	}
public function getRealUrl ( $ url ) { if ( config ( 'services.cdn.base_url' ) ) { $ s3_url = self :: $ s3_base_url . config ( 'filesystems.disks.s3.bucket' ) . '/' ; return str_replace ( $ s3_url , config ( 'services.cdn.base_url' ) , $ url ) ; } else { return $ url ; } }
Determine if the base S3 url needs to be switched out with a CDN url

@param string $url
@return mixed
Determine if the base S3 url needs to be switched out with a CDN url