Skip to content

Commit 7e97a1d

Browse files
5.x: Added default value on selection question while creating new application (#300)
1 parent 3dcb347 commit 7e97a1d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/NewCommand.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
101101
'breeze' => 'Laravel Breeze',
102102
'jetstream' => 'Laravel Jetstream',
103103
],
104+
default: 'none',
104105
)) {
105106
'breeze' => $input->setOption('breeze', true),
106107
'jetstream' => $input->setOption('jet', true),
@@ -118,6 +119,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
118119
$input->setOption('pest', select(
119120
label: 'Which testing framework do you prefer?',
120121
options: ['PHPUnit', 'Pest'],
122+
default: 'PHPUnit',
121123
) === 'Pest');
122124
}
123125

@@ -422,7 +424,8 @@ protected function promptForBreezeOptions(InputInterface $input)
422424
'react' => 'React with Inertia',
423425
'vue' => 'Vue with Inertia',
424426
'api' => 'API only',
425-
]
427+
],
428+
default: 'blade',
426429
));
427430
}
428431

@@ -462,7 +465,8 @@ protected function promptForJetstreamOptions(InputInterface $input)
462465
options: [
463466
'livewire' => 'Livewire',
464467
'inertia' => 'Vue with Inertia',
465-
]
468+
],
469+
default: 'livewire',
466470
));
467471
}
468472

0 commit comments

Comments
 (0)