我使用的存储提供商将文件上传到Rackspace公司是这样的...通过存储
$logo = $request->file('logo');
$content = fopen($logo->getRealPath(), 'r+');
\Storage::disk('cdn')->put('logo.png', $content);
现在,我怎么能得到上述文件的网址是什么?我一直在API中寻找一种方法,这似乎是不可能的。
- http://laravel.com/api/5.0/Illuminate/Filesystem/FilesystemAdapter.html
- http://laravel.com/api/5.0/Illuminate/Filesystem/Filesystem.html