2
I develop an application with Laravel 5.3, where the _DocumentRoot_
stays in the folder public
. Upload images are in storage/app/public
, but I don’t know how to list these images in a view
, I can only display them directly through the response()
of Laravel.
Note: the names of the images are saved in the database.
If I use return response()->file('caminho_da_imagem')
in view
or in the controller
it returns me the image in a dark background;
I also tried using Intervetion Image with Image::make('caminho_da_imagem')->response();
, but the result was the same.
Thanks in advance
You have some code of what you’re trying to do?
– Not The Real Hemingway
Updated! Thanks a lot
– Cleber Martins