Sunday, March 5, 2017

show Image that stored on filesystem

I've try many ways to show Image that stored on my FileSystem but not work. last i try with Intervention Image package, but it still not showing, just show icon blank image not the image itself.

This is my View:

<header>
    <div style="text-align: center">
        <h4>Detail Keluhan</h4><hr>
        <h5 style="color: gray"></h5>
        <img src="" alt="ttd_setuju"/>
    </div>
</header>

This is my Route:

Route::get('image/{ttd_setuju}', ['as'=>'product.image', function($ttd_setuju) {
    return Image::make('app/public/img/ttd'.'/'.$ttd_setuju)->response('png');
}]);

for information, i stored it on app/public/img/ttd and it's name on table 'keluhan' in my DB
how can i solve this guys ? please kindly help any other way its okay if its work



via Christianus Andre

Advertisement