Support the ongoing development of Laravel.io →
posted 10 years ago
Views

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

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

daviestar daviestar Joined 2 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.