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()