How to display image from aws s3 in blade laravel 5.2
<p>I have created a method for getting the data(image file) from aws S3 like this : </p>

<pre><code> public static function getImage ($imagePath)
    {
        if(Storage::exists($imagePath))
        {
            return Storage::disk('s3')-&gt;get($imagePath);
        }else
        {
            return 'No Image';
        }
    }
</code></pre>

<p>I'm sure that those image is exist on the aws, so there is no problem with that.
And then I use above method as the src in my blade view like this :  </p>

<pre><code>{!!Html::image(getImage($myPath),'logo',['width'=&gt;60,'height'=&gt;55])!!}
</code></pre>

<p>$myPath here already point to the specific file on aws for example : bucket/file.jgp. But when I run my webpage, this Html::Image gives a view like this :
<a href="https://i.stack.imgur.com/51tLL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/51tLL.png" alt="enter image description here"></a></p>

<p>What's going on here ? Why Html::image can't render my image file ? :(</p>