diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 643dd35..309c18c 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -9,9 +9,11 @@ class ServiceProvider extends BaseServiceProvider { public function boot() { - $this->publishes([ - __DIR__.'/../config/auth-timeout.php' => config_path('auth-timeout.php'), - ]); + if ($this->app->runningInConsole()) { + $this->publishes([ + __DIR__.'/../config/auth-timeout.php' => config_path('auth-timeout.php'), + ], 'config'); + } } public function register()