-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
namespace LaraZeus\Sky\Console; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class InstallCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'sky:install'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Install Sky components and resources'; | ||
|
||
/** | ||
* Execute the console command. | ||
*/ | ||
public function handle(): void | ||
{ | ||
$this->info('publishing configuration...'); | ||
|
||
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-config']); | ||
|
||
$this->info('publishing migrations...'); | ||
|
||
$this->callSilent('vendor:publish', ['--tag' => 'zeus-sky-migrations']); | ||
|
||
$this->callSilent('vendor:publish', [ | ||
'--provider' => 'Spatie\Tags\TagsServiceProvider', | ||
'--tag' => 'tags-migrations', | ||
]); | ||
|
||
$this->callSilent('vendor:publish', [ | ||
'--provider' => 'Spatie\MediaLibrary\MediaLibraryServiceProvider', | ||
'--tag' => 'migrations', | ||
]); | ||
|
||
$this->info('publishing zeus assets...'); | ||
|
||
$this->callSilent('vendor:publish', ['--tag' => 'zeus-config']); | ||
$this->callSilent('vendor:publish', ['--tag' => 'zeus-assets']); | ||
|
||
$this->info('running migrations...'); | ||
|
||
$this->callSilent('migrate'); | ||
|
||
$this->output->success('Zeus and Sky has been Published successfully'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters