jqh 5 éve
szülő
commit
3cde3e61bd
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/Repositories/EloquentRepository.php

+ 1 - 1
src/Repositories/EloquentRepository.php

@@ -157,7 +157,7 @@ class EloquentRepository extends Repository implements TreeRepository
             if ($value['method'] == 'paginate') {
                 $value['arguments'][1] = $this->getGridColumns();
             } elseif ($value['method'] == 'get') {
-                $value['arguments'] = $this->getGridColumns();
+                $value['arguments'] = [$this->getGridColumns()];
             }
 
             $query = call_user_func_array([$query, $value['method']], $value['arguments'] ?? []);