nahid / jsonq

A PHP query builder for JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Steven0110 opened this issue · comments

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()

Please use version v5.0.0