diff --git a/src/Fields/EagerField.php b/src/Fields/EagerField.php index 24c56f1c..ed37281c 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, "You are not authorized to perform this action."); + if (is_null($relatedModel)) { + abort(403, 'You are not authorized to perform this action.'); } $class = get_class($relatedModel);