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