我使用的存儲提供商將文件上傳到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