Skip to content

Commit 1a99f68

Browse files
authored
Merge pull request #29 from cosmastech/feature/do-not-publish-if-not-running-in-console
only run publishes() when app is running in console
2 parents ca6fda9 + 00f89b1 commit 1a99f68

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ServiceProvider.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ public function register(): void
3939
*/
4040
public function boot(): void
4141
{
42-
$this->publishes([
43-
__DIR__.'/../config/openai.php' => config_path('openai.php'),
44-
]);
42+
if ($this->app->runningInConsole()) {
43+
$this->publishes([
44+
__DIR__.'/../config/openai.php' => config_path('openai.php'),
45+
]);
46+
}
4547
}
4648

4749
/**

0 commit comments

Comments
 (0)