Skip to content

Commit bfffc50

Browse files
Added extra check before registering publish command
1 parent ee8c0bb commit bfffc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function setupConfig(Application $app)
4545
{
4646
$source = realpath(__DIR__.'/../config/parse.php');
4747

48-
if (class_exists('Illuminate\Foundation\Application', false)) {
48+
if (class_exists('Illuminate\Foundation\Application', false) && $app->runningInConsole()) {
4949
$this->publishes([$source => config_path('parse.php')]);
5050
} elseif (class_exists('Laravel\Lumen\Application', false)) {
5151
$app->configure('parse');

0 commit comments

Comments
 (0)