diff --git a/src/TwoFactorAuthServiceProvider.php b/src/TwoFactorAuthServiceProvider.php index 91d80e4..f022d9e 100644 --- a/src/TwoFactorAuthServiceProvider.php +++ b/src/TwoFactorAuthServiceProvider.php @@ -52,6 +52,12 @@ public function boot() if (! $this->app->routesAreCached()) { $this->defineRoutes(); } + + if ($this->app->runningInConsole()) { + $this->publishes([ + __DIR__ . '/config' => $this->app->configPath() + ], 'tokenized_auth'); + } } private function defineRoutes()