The method valueRetriever() does not seem to exist on object<Spatie\Collection...os\Macros\GroupByModel>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
25
26
return $this->groupBy(function ($item) use ($callback) {
The method groupBy() does not seem to exist on object<Spatie\Collection...os\Macros\GroupByModel>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
27
return $callback($item)->getKey();
28
}, $preserveKeys)->map(function (Collection $items) use ($callback, $modelKey, $itemsKey) {
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.