Skip to content

Commit

Permalink
Add publish config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammadreza-73 committed May 6, 2022
1 parent 823bc6f commit fa8c052
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/TwoFactorAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fa8c052

Please sign in to comment.