Laravel league/flysystem getting file URL with AWS S3
I'm not sure what the correct way of doing this is with Flysystem, but the underlying S3Client
object has a method for doing that. You could do $filesystem->getAdapter()->getClient()->getObjectUrl($bucket, $key);
. Of course, building the URL is as trivial as you described, so you don't really need a special method to do it.
I am using Laravel 5.2 and the code below seemed to work fine.
Storage::cloud()->url('filename');