N
N
Nikita Stechkin2021-02-19 21:09:34
Laravel
Nikita Stechkin, 2021-02-19 21:09:34

How to remove photos from storage?

I need to display the photo from Storage without creating a link to the public folder so that the photo can't be viewed at http://127.0.0.1:8000/public/name .

I tried But it was returning a set of characters, not a file. I tried to use: But when I passed this path to the view in the img tag, then the src contained a link to this file, but it still was not displayed on the site

Storage::disk('temp')->get($path)



Storage::disk('temp')->url($path)

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