use App\\Order;
public function show(Order $order){
$data = $order->all();
return dd($order->getQueryLog());
Is there any w
I know it's an old question, but it might help others that had the same issue I had.
If you use other connection than the default one, you should specify it to get the query log properly.
\DB::connection('YourConnection')->enableQueryLog();
$test = MyModel::all();
$queries = \DB::connection('YourConnection')->getQueryLog();
dd($queries);