From 0d35c84dbcbf9851d03c83d7a10a45a9d5b31bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Sun, 23 Jan 2022 10:41:43 +0800 Subject: [PATCH] Fix --- app/Models/QuotaLog.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Models/QuotaLog.php b/app/Models/QuotaLog.php index 830c4b1d..9fb77e11 100644 --- a/app/Models/QuotaLog.php +++ b/app/Models/QuotaLog.php @@ -16,4 +16,12 @@ class QuotaLog extends Model 'change_quota', 'remarks', ]; + + /** + * 新配额所属的用户 + */ + public function user() + { + return $this->belongsTo(User::class); + } }