title: getting round average in laravel way
body: <p>I was trying to run average in my project but I was not able to make the round function work, every time I run the function I always end up with float value example: average is 86.5, I wanted it to round to nearest tens which is 87 or if lower it will turn 86.</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>$score-&gt;average =round( $row['result1'] + $row['result2']) /2;
  </code></pre>
  
  <p><strong>Schema</strong></p>
  
  <pre><code> $table-&gt;integer('result1');
   $table-&gt;integer('result2');
  </code></pre>