N
N
Nikita Stechkin2021-02-16 22:32:15
Laravel
Nikita Stechkin, 2021-02-16 22:32:15

How to display a file from storage without creating a link to the public folder?

I have a temp(storage/app/tepm) disk that stores photos that should be available to certain users, how can I access them without creating a link to the public folder?

I tried to do like this:

Storage::path('temp\E.jpg')

 Storage::disk('temp')->url('E.jpg')


But it only works if I add link to public

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