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'); + } }