From 1442db2828a9e0db61db13e9d140f4f71bba73d3 Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Tue, 6 Oct 2015 18:55:58 +0200 Subject: [PATCH] Added extra check before registering publish command --- src/InstagramServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InstagramServiceProvider.php b/src/InstagramServiceProvider.php index fad10a7..006bf32 100644 --- a/src/InstagramServiceProvider.php +++ b/src/InstagramServiceProvider.php @@ -43,7 +43,7 @@ protected function setupConfig(Application $app) { $source = realpath(__DIR__.'/../config/instagram.php'); - if (class_exists('Illuminate\Foundation\Application', false)) { + if (class_exists('Illuminate\Foundation\Application', false) && $app->runningInConsole()) { $this->publishes([$source => config_path('instagram.php')]); } elseif (class_exists('Laravel\Lumen\Application', false)) { $app->configure('instagram');