Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Eloquent sum of multiplied columns

$amount = Transaction::sum(DB::raw('jumla * harga'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Eloquent #sum #multiplied #columns
ADD COMMENT
Topic
Name
1+5 =