Compare commits
2 Commits
fb965f3871
...
6532f2d075
| Author | SHA1 | Date | |
|---|---|---|---|
| 6532f2d075 | |||
|
|
85c7a3e286 |
@@ -12,11 +12,13 @@ class Item extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'plant_id',
|
||||
'line_id',
|
||||
'category',
|
||||
'code',
|
||||
'description',
|
||||
'hourly_quantity',
|
||||
'uom',
|
||||
'line_capacity',
|
||||
];
|
||||
|
||||
public function plant(): BelongsTo
|
||||
@@ -24,6 +26,11 @@ class Item extends Model
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
|
||||
public function line(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Line::class);
|
||||
}
|
||||
|
||||
public function stickerMasters()
|
||||
{
|
||||
return $this->hasMany(StickerMaster::class, 'item_id', 'id');
|
||||
|
||||
Reference in New Issue
Block a user