diff --git a/src/Fields/EagerField.php b/src/Fields/EagerField.php index f49d0932a..9f1ab15fa 100644 --- a/src/Fields/EagerField.php +++ b/src/Fields/EagerField.php @@ -57,8 +57,8 @@ public function resolve($repository, $attribute = null) ->allowToShow(app(Request::class)) ->eagerState(); } catch (AuthorizationException $e) { - if(is_null($relatedModel)) { - abort(403, "Related model is null."); + if (is_null($relatedModel)) { + abort(403, 'Related model is null.'); } $class = get_class($relatedModel);