Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit eebe9a7

Browse files
committed
fix camel case config path
1 parent c7610c6 commit eebe9a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Support/ConnectionResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function getItems($collection, ResolveInfo $info, $name)
8282
*/
8383
protected function getSelectFields(ResolveInfo $info)
8484
{
85-
$camel = config('relay.eloquent.camel_case');
85+
$camel = config('relay.camel_case');
8686

8787
return collect($info->getFieldSelection(4)['edges']['node'])
8888
->reject(function ($value) {

src/Support/Definition/EloquentType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(Model $model, $name = '')
5858
$this->fields = collect();
5959
$this->hiddenFields = collect($model->getHidden())->flip();
6060
$this->model = $model;
61-
$this->camelCase = config('relay.eloquent.camel_case', false);
61+
$this->camelCase = config('relay.camel_case', false);
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)