From e260c865c218f00e4ad0c445dc45852e254d60c7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 9 Jul 2019 08:43:49 -0500 Subject: [PATCH] check if configuration is cached --- src/PassportServiceProvider.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/PassportServiceProvider.php b/src/PassportServiceProvider.php index 1ff40f2b6..bafc1563e 100644 --- a/src/PassportServiceProvider.php +++ b/src/PassportServiceProvider.php @@ -78,14 +78,13 @@ protected function registerMigrations() */ public function register() { - $this->mergeConfigFrom(__DIR__.'/../config/passport.php', 'passport'); + if (! $this->app->configurationIsCached()) { + $this->mergeConfigFrom(__DIR__.'/../config/passport.php', 'passport'); + } $this->registerAuthorizationServer(); - $this->registerResourceServer(); - $this->registerGuard(); - $this->offerPublishing(); }