Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get a sum of a column in lravel

$balance = DB::table('data')->sum('balance')->where('user_id' '=' $id);
Source by laravel.io #
 
PREVIOUS NEXT
Tagged: #sum #column #lravel
ADD COMMENT
Topic
Name
6+1 =