📅  最后修改于: 2022-03-11 14:54:08.778000             🧑  作者: Mango
$path = $request->file('avatar')->storePublicly('avatars', 's3');
$path = $request->file('avatar')->storePubliclyAs(
'avatars',
$request->user()->id,
's3'
);