title: Call to undefined function App\Http\Controllers\now() in laravel
body: <p>I'm receiving the following error in Laravel 5.2</p>
  
  <p>The following is the query :</p>
  
  <pre><code>$ansrow = DB::table('answers')
           -&gt;where('user_id', $u_id) 
           -&gt;whereBetween('created_at', [
               now()-&gt;format('Y-m-d H:00:00'),
               now()-&gt;addHours(1)-&gt;format('Y-m-d H:00:00')
                      ])
            -&gt;first(); 
  </code></pre>
  
  <p>I receive the following error :</p>
  
  <pre><code>Call to undefined function App\Http\Controllers\now()
  </code></pre>