nahid / jsonq

A PHP query builder for JSON
Creative Commons Zero v1.0 Universal
870 stars 105 forks source link

Call to undefined method Nahid\JsonQ\Jsonq::groupBy() #12

Closed Steven0110 closed 6 years ago

Steven0110 commented 6 years ago

Hi, I'm using JsonQ on Laravel 5.4. I followed the steps: 1.- run $composer require nahid/jsonq 2.- Add "use "Nahid\JsonQ\Jsonq;" to controller The next code shows that error:

$jsonq = new Jsonq(); $json = $jsonq->json('{"users":[{"name":"Name1","email":"x@dom.com","type":"1"},{"name":"Name2","email":"y@dom.com","type":"2"}]}'); $types = $json->from('users')->groupBy('type')->get();

I've tested other library functions, and they work fine, but it does not work when I use groupBy()

nahid commented 6 years ago

Please use version v5.0.0