Skip to content

Commit

Permalink
Added the option to install laravel/breeze with dark mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakyeRU committed Dec 28, 2022
1 parent 4efc153 commit 0c0967c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Console/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public function handle()
// Installing laravel/breeze
$this->info('Installing Larascord...');
$this->requireComposerPackages('laravel/breeze:^1.16', '-q');
shell_exec('php artisan breeze:install' . $this->confirm('Do you want to install laravel/breeze with dark mode?', true) ? ' --dark' : '');
if ($this->confirm('Do you want to install laravel/breeze with dark mode?', true)) {
shell_exec('php artisan breeze:install --dark');
} else {
shell_exec('php artisan breeze:install');
}

// Appending the secrets to the .env file
$this->appendToEnvFile();
Expand Down

0 comments on commit 0c0967c

Please sign in to comment.