From 6d8e53082c188c89f765bf016d1e4bca7802b025 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 31 Jan 2018 10:03:08 -0600 Subject: [PATCH] add a method to retreive the policies --- .../Support/Providers/AuthServiceProvider.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php b/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php index 880370a9639f..4fc90b7dec72 100644 --- a/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php +++ b/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php @@ -33,4 +33,14 @@ public function register() { // } + + /** + * Get the policies defined on the provider. + * + * @return array + */ + public function policies() + { + return $this->policies; + } }