title: Difference between two days laravel query
body: <p>Are there any way to get difference of two days (today &amp; created_at) using laravel query?</p>
  <p>I have tried as follows.but that didn't work for me</p>
  <pre><code>public function scopeActivatedOrders($query,$currentDate){
          return $query-&gt;select('*')
              -&gt;where('orders.activated', '=', '1')
              -&gt;where('DATEDIFF(order.arrived_date,$currentDate)','&gt;','14')-&gt;get();
      }
  </code></pre>
  <p>Thank you!</p>