📜  laravel 将文件从本地移动到 s3 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:46.338000             🧑  作者: Mango

代码示例1
se Illuminate\Http\File;
use Illuminate\Support\Facades\Storage;

// Automatically generate a unique ID for file name...
Storage::putFile('photos', new File('/path/to/photo'));

// Manually specify a file name...
Storage::putFileAs('photos', new File('/path/to/photo'), 'photo.jpg');