'integer', 'unit_price' => 'decimal:2', 'price' => 'decimal:2' ]; public function stockTransfer() { return $this->belongsTo(StockTransfer::class); } public function product() { return $this->belongsTo(Product::class); } public function productBatch() { return $this->belongsTo(ProductBatch::class); } }