From cd43e338d71586d3b4b4d0d063bcd7d12305f7cd Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sun, 20 Sep 2026 12:50:18 +0530 Subject: [PATCH] Added machine relation in model file --- app/Models/Plant.php | 5 +++++ 1 file changed, 5 insertions(+) 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'); + } }