Get file's signed URL from amazon s3 using Filesystem Laravel 5.2
问题 I'm looking for a good solution to get the signed url from amazon s3. I have a version working with it, but not using laravel: private function getUrl () { $distribution = $_SERVER["AWS_CDN_URL"]; $cf = Amazon::getCFClient(); $url = $cf->getSignedUrl(array( 'url' => $distribution . self::AWS_PATH.rawurlencode($this->fileName), 'expires' => time() + (session_cache_expire() * 60))); return $url; } I don't know if this is the best way to do with laravel, considering it has a entire file system