src/Traits/ApiResponse.php
private function getQueries()
    {
        return $queries = DB::getQueryLog();
        
        $formattedQueries = [];
        foreach ($queries as $query) {
            $prep = $query['query'];
            
            foreach ($query['bindings'] as $binding) {
                $prep = preg_replace("#\?#", $binding, $prep, 1);
            }
            
            $formattedQueries[] = $prep;
        }
        
        return $formattedQueries;
    }
private function getQueries()
    {
        return $queries = DB::getQueryLog();
        
        $formattedQueries = [];
        foreach ($queries as $query) {
            $prep = $query['query'];
            
            foreach ($query['bindings'] as $binding) {
                $prep = preg_replace("#\?#", $binding, $prep, 1);
            }
            
            $formattedQueries[] = $prep;
        }
        
        return $formattedQueries;
    }
Return entity data array or array blank

@return array