for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\MediaLibrary\UrlGenerator;
class S3UrlGenerator extends BaseUrlGenerator
{
/**
* Get the url for the profile of a media item.
*
* @return string
*/
public function getUrl(): string
return config('medialibrary.s3.domain').'/'.$this->getPathRelativeToRoot();
}
public function getPath(): string
return $this->getPathRelativeToRoot();