Cara menyimpulkan dalam laravel
Auth::user()->products->sum('price');
nk jangid
Auth::user()->products->sum('price');
Auth::user()->products->sum('price');
// And on your App/User.php you need someting like this:
public function products(){
return Products::where('id_buyer', Auth::user()->id)->get();
}