📅  最后修改于: 2022-03-11 14:55:14.892000             🧑  作者: Mango
代码示例1
// in your model
public function registerMediaCollections(): void
{
$this
->addMediaCollection('avatar')
->singleFile();
}