Skip to content

Commit e260c86

Browse files
committed
check if configuration is cached
1 parent 19f8ef0 commit e260c86

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/PassportServiceProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,13 @@ protected function registerMigrations()
7878
*/
7979
public function register()
8080
{
81-
$this->mergeConfigFrom(__DIR__.'/../config/passport.php', 'passport');
81+
if (! $this->app->configurationIsCached()) {
82+
$this->mergeConfigFrom(__DIR__.'/../config/passport.php', 'passport');
83+
}
8284

8385
$this->registerAuthorizationServer();
84-
8586
$this->registerResourceServer();
86-
8787
$this->registerGuard();
88-
8988
$this->offerPublishing();
9089
}
9190

0 commit comments

Comments
 (0)