0
I need to add the result of a count() in a table and the function sum() does not work for results obtained with count(). 
This is inside a foreach:
$occurrence->people_involved->where('tipo_de_envolvimento','VÍTIMA')->count()
The result is a number for each loop item.
I need to add this result, out of the foreach, clear.
How to do?
I didn’t understand need to explain better
– novic