📜  storePublicly laravel with name - PHP 代码示例

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

代码示例1
$path = $request->file('avatar')->storePublicly('avatars', 's3');

$path = $request->file('avatar')->storePubliclyAs(
    'avatars',
    $request->user()->id,
    's3'
);