From 2294e76de0eeeb1a2274ff7d7f3b616b1eccd491 Mon Sep 17 00:00:00 2001 From: Alexander Helmroos Date: Tue, 5 Apr 2022 10:24:45 +0300 Subject: [PATCH] Fixed an issue where the Authorizer stub does not implement all methods in the Authorizer contract --- stubs/authorizer.stub | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stubs/authorizer.stub b/stubs/authorizer.stub index 80c8ae3..1cd9ba8 100644 --- a/stubs/authorizer.stub +++ b/stubs/authorizer.stub @@ -69,7 +69,20 @@ class {{ class }} implements Authorizer } /** - * Authorize the show-related and show-relationship controller action. + * Authorize the show-related controller action + * + * @param Request $request + * @param object $model + * @param string $fieldName + * @return bool + */ + public function showRelated(Request $request, object $model, string $fieldName): bool + { + // TODO: Implement showRelated() method. + } + + /** + * Authorize the show-relationship controller action. * * @param Request $request * @param object $model