diff --git a/app/Models/Item.php b/app/Models/Item.php index c4ebc33..96863fa 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -41,7 +41,7 @@ class Item extends Model public function motorTestingMasters() { - return $this->hasMany(MotorTestingMaster::class); + return $this->hasMany(MotorTestingMaster::class, 'item_id', 'id'); } public function testingPanelReadings()