Compare commits
2 Commits
3c59e06fe7
...
e609b32954
| Author | SHA1 | Date | |
|---|---|---|---|
| e609b32954 | |||
|
|
9bf5337383 |
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user