Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Added extra check before registering publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 6, 2015
1 parent ff6cb7d commit 1442db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InstagramServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1442db2

Please sign in to comment.