Skip to content

Commit

Permalink
5.x: Added default value on selection question while creating new app…
Browse files Browse the repository at this point in the history
…lication (#300)
  • Loading branch information
bigship-prashant authored Jan 6, 2024
1 parent 3dcb347 commit 7e97a1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
'breeze' => 'Laravel Breeze',
'jetstream' => 'Laravel Jetstream',
],
default: 'none',
)) {
'breeze' => $input->setOption('breeze', true),
'jetstream' => $input->setOption('jet', true),
Expand All @@ -118,6 +119,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
$input->setOption('pest', select(
label: 'Which testing framework do you prefer?',
options: ['PHPUnit', 'Pest'],
default: 'PHPUnit',
) === 'Pest');
}

Expand Down Expand Up @@ -422,7 +424,8 @@ protected function promptForBreezeOptions(InputInterface $input)
'react' => 'React with Inertia',
'vue' => 'Vue with Inertia',
'api' => 'API only',
]
],
default: 'blade',
));
}

Expand Down Expand Up @@ -462,7 +465,8 @@ protected function promptForJetstreamOptions(InputInterface $input)
options: [
'livewire' => 'Livewire',
'inertia' => 'Vue with Inertia',
]
],
default: 'livewire',
));
}

Expand Down

0 comments on commit 7e97a1d

Please sign in to comment.