diff --git a/CHANGELOG.md b/CHANGELOG.md index 78446edf6f..ff55a8509d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,8 @@ You can find and compare releases at the [GitHub release page](https://github.co ### Fixed - Fix nested mutations with multiple `belongsTo` relations at the same level https://github.com/nuwave/lighthouse/pull/1285 -- Avoid race condition that occurs when using `Cache::has()` https://github.com/nuwave/lighthouse/pull/1290Adds +- Avoid race condition that occurs when using `Cache::has()` https://github.com/nuwave/lighthouse/pull/1290 +- Replace usage of `resolve()` helper with Lumen-compatible `app()` https://github.com/nuwave/lighthouse/pull/1305 ### Changed diff --git a/src/Schema/Directives/RulesDirective.php b/src/Schema/Directives/RulesDirective.php index ebdc923e7b..44d2af1d5e 100644 --- a/src/Schema/Directives/RulesDirective.php +++ b/src/Schema/Directives/RulesDirective.php @@ -58,7 +58,7 @@ public function rules(): array // resolve any given rule where a corresponding class exists. foreach ($rules as $key => $rule) { if (class_exists($rule)) { - $rules[$key] = resolve($rule); + $rules[$key] = app($rule); } } diff --git a/src/Schema/Directives/RulesForArrayDirective.php b/src/Schema/Directives/RulesForArrayDirective.php index 9c63be952e..f1a39bb985 100644 --- a/src/Schema/Directives/RulesForArrayDirective.php +++ b/src/Schema/Directives/RulesForArrayDirective.php @@ -54,7 +54,7 @@ public function rules(): array // resolve any given rule where a corresponding class exists. foreach ($rules as $key => $rule) { if (class_exists($rule)) { - $rules[$key] = resolve($rule); + $rules[$key] = app($rule); } }