hasMany(MaterialReceipt::class, 'material_id'); } // 로트 관리 public function lots() { return $this->hasMany(Lot::class, 'material_id'); } }