From 29368133715c1e36646adb1af6da1bbce0e53e05 Mon Sep 17 00:00:00 2001 From: liapples Date: Mon, 23 Aug 2021 14:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=94=A8=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E7=9A=84$appends?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Product.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Models/Product.php b/app/Models/Product.php index 64de22d..b4e6a8d 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -15,7 +15,6 @@ class Product extends BaseModel use HasFactory, SoftDeletes; protected $guarded = ['id']; //不允许编辑的字段 - protected $appends = ['picture']; // 获取所有产品图片 public function getPicturesAttribute($value): array