I am uploading my images to S3 using Flysystem.
In my database I keep only the file name (image.jpg)
Now, I was thinking of implementing Presenters to fetch the file public URL so that I can set it as image src in HTML. Something like
$image->present()->publicURL;
I am using
laracasts/presenter
for that.
The problem is that I don't know how to fetch the public URL of the file.
Can anyone help me with this?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community