From 419c2e8775a5673470bc77c00b1702b1eb7e0806 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 16 Oct 2026 16:43:23 +0530 Subject: [PATCH] Added reg address in plant model file --- app/Models/Plant.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index f3fcedfb..82eaca88 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -17,6 +17,7 @@ class Plant extends Model 'name', 'address', 'warehouse_number', + 'reg_address', ]; public function company(): BelongsTo @@ -194,6 +195,11 @@ class Plant extends Model return $this->hasMany(TempStopCharacteristic::class, 'plant_id', 'id'); } + public function laserAxisPositionMasters() + { + return $this->hasMany(LaserAxisPositionMaster::class, 'plant_id', 'id'); + } + public function users() { return $this->hasMany(User::class, 'plant_id', 'id'); @@ -249,4 +255,8 @@ class Plant extends Model return $this->hasMany(StickerOrder::class, 'plant_id', 'id'); } + public function ItemCharacteristics() + { + return $this->hasMany(ItemCharacteristic::class, 'plant_id', 'id'); + } }