From 092e20fbf42effeb7cf1ab08a18fa7eea0f754bb Mon Sep 17 00:00:00 2001
From: Julio Motol <julio.motol89@gmail.com>
Date: Fri, 8 Jan 2021 02:18:22 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Improve=20publishing=20config?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/ServiceProvider.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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()