Skip to content

Commit

Permalink
Fix config publishing (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell authored Apr 23, 2024
1 parent eccc093 commit 8a4ddaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Statamic\Facades\Collection;
use Statamic\Facades\Site;
use Statamic\Providers\AddonServiceProvider;
use Statamic\Statamic;
use Statamic\Support\Arr;
use TransformStudios\Events\Exceptions\FieldNotFoundException;
use TransformStudios\Events\Fieldtypes\Timezones;
Expand Down Expand Up @@ -107,7 +108,9 @@ private function bootFields(): self

private function publishConfig(): self
{
Artisan::call('vendor:publish', ['--tag' => 'events-config', '--force' => false]);
Statamic::afterInstalled(function ($command) {
Artisan::call('vendor:publish', ['--tag' => 'events-config', '--force' => false]);
});

return $this;
}
Expand Down

0 comments on commit 8a4ddaf

Please sign in to comment.