Are you looking for this ? https://laravel.com/docs/5.7/helpers#method-asset
I'm not sure what you want...
Generate all urls for each item in a folder ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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?
Please or to participate in this conversation.