diff --git a/app/Models/Line.php b/app/Models/Line.php index 22f539a..00b2631 100644 --- a/app/Models/Line.php +++ b/app/Models/Line.php @@ -13,6 +13,7 @@ class Line extends Model protected $fillable = [ "plant_id", + "block_id", "name", "type", "group_work_center", @@ -34,6 +35,11 @@ class Line extends Model return $this->belongsTo(Plant::class); } + public function block(): BelongsTo + { + return $this->belongsTo(Block::class); + } + public function testingPanelReadings() { return $this->hasMany(TestingPanelReading::class);