E
E
EVOSandru62020-01-02 01:10:57
Laravel
EVOSandru6, 2020-01-02 01:10:57

How to display images in laravel from minio?

Hello. guys. I'm trying to make Laravel

friends with Minio . The problem is that it is not clear how to display an image in src. Created bucket test in minio panel. Threw images in there. I'm trying to display in view :







@foreach(Storage::disk('minio')->files() as $img)
    <img src="{{ Storage::disk('minio')->url($img) }}" alt="{{ $img }}"/>
@endforeach


Broken pictures are displayed without errors, but there are no errors in the console.

By direct link For example:

127.0.0.1:9000/test/cat1.jpg

A minio page opens with a file and menus.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question