title: Can I check which connection is being used to the query - laravel read-write connection?
body: <p>Is there any way to check which connection read/write is being used to the query ? I am trying to log the query object it returns me both the connection pdo &amp; readPdo but do not specifying that which connection is being used</p>
  <pre><code>DB::listen(function ($query) {
      dump($query-&gt;connection);
  });
  
  $table = DB::table('table')-&gt;first();
  </code></pre>
  <p>Output:</p>
  <p><a href="https://i.stack.imgur.com/weph7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/weph7.png" alt="enter image description here" /></a></p>