Friday, March 3, 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');}]);

how can i solve this guys ? please kindly help



via Christianus Andre

Advertisement