public function show(Order $order){ DB::connection()->enableQueryLog(); $data = $order->all(); $queries = DB::getQueryLog(); return dd($queries); }