Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel select where with total sum query to get all data with sum

$query =  SalesPayment::select('*', DB::raw('SUM(amount) AS total_sale_amount')->with ....
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #select #total #sum #query #data #sum
ADD COMMENT
Topic
Name
3+7 =