Updated item foreign key on belongsTo
This commit is contained in:
@@ -52,7 +52,8 @@ class MotorTestingMaster extends Model
|
||||
|
||||
public function item(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Item::class);
|
||||
return $this->belongsTo(Item::class, 'item_id', 'id');
|
||||
// return $this->belongsTo(Item::class);
|
||||
}
|
||||
|
||||
public function testingPanelReadings()
|
||||
|
||||
Reference in New Issue
Block a user