Get file's signed URL from amazon s3 using Filesystem Laravel 5.2 : <p>I'm looking for a good solution to get the signed url from amazon s3.</p>

<p>I have a version working with it, but not using laravel:</p>

<pre class="lang-php prettyprint-override"><code>private function getUrl ()
{
        $distribution = $_SERVER["AWS_CDN_URL"];

        $cf = Amazon::getCFClient();

        $url = $cf-&gt;getSignedUrl(array(
            'url'     =&gt; $distribution . self::AWS_PATH.rawurlencode($this-&gt;fileName),
            'expires' =&gt; time() + (session_cache_expire() * 60)));

        return $url;
}
</code></pre>

<p>I don't know if this is the best way to do with laravel, considering it has a entire file system to work... </p>

<p>But if don't have another way, how do I get the client? Debugging I've found an instance of it inside the Filesystem object, but it is protected...</p>
