Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Galavant's avatar

get the public URL of all files in a directory

Hey!

I am storing files in my local storage

public/tickets/ticket33/filename.jpeg

In my controller I currently have this

       $files = Storage::allFiles('public/tickets/ticket'.$post->id);

I just read that the url() method will give me publically accesible urls, but I can't seem to get it working. How do I do that?

0 likes
2 replies

Please or to participate in this conversation.