title: Laravel mysql avg() function
body: <p>I am using Laravel on developing my new app. I have initiated average function on a rating column in my database table and now I am just curious how could I make the average value from "3.3333" into "3.3".</p>
  
  <pre><code>$rating = Rating::avg('value');
  echo $rating;
  </code></pre>