Added machine relation in model file #225
@@ -117,4 +117,9 @@ class Plant extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(CharacteristicValue::class, 'plant_id', 'id');
|
return $this->hasMany(CharacteristicValue::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function machines()
|
||||||
|
{
|
||||||
|
return $this->hasMany(Machine::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user