diff --git a/app/Models/Plant.php b/app/Models/Plant.php index a28403b..3e35d63 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -117,4 +117,9 @@ class Plant extends Model { return $this->hasMany(CharacteristicValue::class, 'plant_id', 'id'); } + + public function machines() + { + return $this->hasMany(Machine::class, 'plant_id', 'id'); + } }