Skip to content

Commit

Permalink
publish activity log migrations in install command
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3d0X committed Nov 13, 2022
1 parent 65e0558 commit c944dcf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/FilamentLoggerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ public function packageConfigured(Package $package): void
->hasInstallCommand(function (InstallCommand $installCommand) {
$installCommand
->publishConfigFile()
->askToStarRepoOnGitHub('z3d0x/filament-logger');
->askToStarRepoOnGitHub('z3d0x/filament-logger')
->startWith(function (InstallCommand $installCommand) {
$installCommand->call('vendor:publish', [
'--provider' => "Spatie\Activitylog\ActivitylogServiceProvider",
'--tag' => "activitylog-migrations"
]);
});
});
}

Expand Down

0 comments on commit c944dcf

Please sign in to comment.