DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+1 =
Submit