How to get average of column values in laravel : <p>Lets say I have this column</p>

<pre><code>star
----
1    
3    
3    
1    
2    
5    
3
</code></pre>

<p>It has seven rows and there are integer values! I want to have it added and divided by the rows there are.</p>

<p>How do I do it in laravel. I can do it in plain php but I want to learn it in laravel.</p>
