Skip to content

Commit

Permalink
gotta do this as it kill artisan provider loading
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Apr 23, 2024
1 parent eccc093 commit bf892b5
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 bf892b5

Please sign in to comment.