Added line_id foreign and Line BelongsTo relation

This commit is contained in:
dhanabalan
2025-05-28 17:18:58 +05:30
parent fd6aea01ed
commit f641602533

View File

@@ -13,6 +13,7 @@ class QualityValidation extends Model
protected $fillable = [ protected $fillable = [
'sticker_master_id', 'sticker_master_id',
'plant_id', 'plant_id',
'line_id',
'production_order', 'production_order',
'serial_number_motor', 'serial_number_motor',
'serial_number_pump', 'serial_number_pump',
@@ -48,4 +49,9 @@ class QualityValidation extends Model
{ {
return $this->belongsTo(Plant::class); return $this->belongsTo(Plant::class);
} }
public function line(): BelongsTo
{
return $this->belongsTo(Line::class);
}
} }