Laravel Eloquent display query log
<pre><code>use App\Order;
 
public function show(Order $order) {
    $data = $order-&gt;all();
    return dd($order-&gt;getQueryLog());
</code></pre>
<p>Is there any way to display the query built by Eloquent in Laravel?</p>
<p>I tried <code>getQueryLog();</code> but its not working</p>