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); + } }