From c9f957a8b07011b2a9d88cee24f5b0e4ed905e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Jacquet?= Date: Wed, 12 Jun 2019 13:21:49 +0200 Subject: [PATCH] add index => viewAny to resourceAbilityMap --- src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php b/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php index 9930d9052d8b..c081942d9024 100644 --- a/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php +++ b/src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php @@ -105,6 +105,7 @@ public function authorizeResource($model, $parameter = null, array $options = [] protected function resourceAbilityMap() { return [ + 'index' => 'viewAny', 'show' => 'view', 'create' => 'create', 'store' => 'create',