Skip to content

Commit

Permalink
Only offer publishing when running in console (#3227)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored Mar 31, 2023
1 parent 8cef28c commit e4b07c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MediaLibraryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public function register()

protected function registerPublishables(): void
{
if (! $this->app->runningInConsole()) {
return;
}

$this->publishes([
__DIR__.'/../config/media-library.php' => config_path('media-library.php'),
], 'config');
Expand Down

0 comments on commit e4b07c2

Please sign in to comment.