Added reg address in plant model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user