diff --git a/app/Models/Plant.php b/app/Models/Plant.php index bc2b289..493df50 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -107,4 +107,9 @@ class Plant extends Model { return $this->hasMany(ItemCharacteristic::class, 'plant_id', 'id'); } + + public function processOrders() + { + return $this->hasMany(ProcessOrder::class, 'plant_id', 'id'); + } }