title: DB::listen not working in controller, Laravel 5.3
body: <p>The below query prints the count of users table and the echo statement what i have given. Wondering why its not printing the sql query as per the <a href="https://laravel.com/docs/5.3/database" rel="nofollow noreferrer">documentation</a> says.        </p>
  
  <pre><code>$count = DB::table('users')-&gt;count();
          echo $count;
          DB::listen(function($query){
               echo $query-&gt;sql;
           });
          echo 'End of the script';
  </code></pre>