Skip to content

Commit

Permalink
Merge pull request #258 from lara-zeus/imporve-command
Browse files Browse the repository at this point in the history
improve install command
  • Loading branch information
atmonshi authored Feb 16, 2024
2 parents 3722a8c + cdd3562 commit 1818bbd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ class InstallCommand extends Command
public function handle(): void
{
$this->info('publishing migrations...');
$this->callSilent('vendor:publish', ['--tag' => 'zeus-bolt-migrations']);
$this->callSilent('vendor:publish', ['--tag' => 'zeus-bolt-config']);
$this->call('vendor:publish', ['--tag' => 'zeus-bolt-migrations']);
$this->call('vendor:publish', ['--tag' => 'zeus-bolt-config']);

$this->info('publishing assets...');
$this->callSilent('vendor:publish', ['--tag' => 'zeus-assets']);
$this->call('vendor:publish', ['--tag' => 'zeus-assets']);

if ($this->confirm('Do you want to run the migration now?', true)) {
$this->info('running migrations...');
$this->callSilent('migrate');
$this->call('migrate');
}

$this->output->success('Zeus Bolt has been Installed successfully');
$this->output->success('Zeus Bolt has been Installed successfully, consider ⭐️ the package in filament site :)');
}
}

0 comments on commit 1818bbd

Please sign in to comment.