Hey
Loving the flysystem integration in L5 and just got it hooked up with S3 on my live site, and 'local' on my dev environment.
However, I'm not sure how I should go about resolving the full path to the cloud (or local) storage in my views. For example I pass a 'localised' path to my view, ie. 'screenshots/blablabla.jpg'
as $screenshot
and try to use blade like this: {{ Storage::get($screenshot) }}
just as I usually would use {{ URL::to('img/'.$screenshot) }}
when working with only the local filesystem, but nothing prints out at all - no errors.
Any advice much appreciated :)
EDIT
I now realise that Storage get
returns the file contents.. how do I get the storage path? Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community