From 5f86f80684c90d9788033e5ab468ef6c8f6afda5 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 27 Oct 2025 14:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/CommonModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/CommonModel.php b/app/Models/CommonModel.php index 0a63a6c..e6be0dd 100755 --- a/app/Models/CommonModel.php +++ b/app/Models/CommonModel.php @@ -17,7 +17,7 @@ class CommonModel extends Model implements Auditable protected $table; - protected $guarded = []; + protected $guarded = ['id']; protected $casts = [ 'created_at' => 'datetime:Y-m-d H:i:s', 'updated_at' => 'datetime:Y-m-d H:i:s',