How to get file path using Storage facade in laravel 5?
Storage::url($filename) to get the full path/URL of a given file. Note that you need to set
S3 as your storage filesystem in
'default' => 's3'
Of course, you can also do
Storage::disk('s3')->url($filename) in the same way.
As you can see in
config/filesystems.php there's also a parameter
'cloud' => 's3' defined, that refers to the Cloud filesystem. In case you want to mantain the storage folder in the local server but retrieve/store some files in the cloud use
Storage::cloud(), which also has the same filesystem methods, i.e.