Added testingPanelReadings hasMany relation
This commit is contained in:
@@ -54,4 +54,9 @@ class MotorTestingMaster extends Model
|
||||
{
|
||||
return $this->belongsTo(Item::class);
|
||||
}
|
||||
|
||||
public function testingPanelReadings()
|
||||
{
|
||||
return $this->hasMany(TestingPanelReading::class, 'motor_testing_master_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user