From 5cb8b5e9cf81e7d02a1dbe6bfcfa2bbaf1f1ebb3 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Sun, 6 Aug 2023 13:32:04 +0800 Subject: [PATCH] Fix --- app/Models/RiceShrimpWeeklyPrice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/RiceShrimpWeeklyPrice.php b/app/Models/RiceShrimpWeeklyPrice.php index 75174ae..ba2c11c 100644 --- a/app/Models/RiceShrimpWeeklyPrice.php +++ b/app/Models/RiceShrimpWeeklyPrice.php @@ -17,7 +17,7 @@ class RiceShrimpWeeklyPrice extends Model public function weekObj() { - return $this->belongsTo(Keywords::class, 'week'); + return $this->belongsTo(Keywords::class, 'week', 'key'); } public function createdBy()