Skip to content

Commit 4238282

Browse files
Update prompt texts for application details input fields
1 parent c4a3bc3 commit 4238282

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Skeletorfile.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
use NiftyCo\Skeletor\Skeletor;
44

55
return function (Skeletor $skeletor) {
6-
$applicationName = $skeletor->text('Enter the application name:', 'Laravel', required: true);
7-
$name = $skeletor->text('Enter the demo username', 'John Doe', required: true);
8-
$email = $skeletor->text('Enter the demo email:', 'admin@example.com', required: true);
9-
$password = $skeletor->password('Enter the demo password:', 'password', required: true);
10-
$timezone = $skeletor->search('Which timezone do you want to use? ', fn (string $query) => collect(timezone_identifiers_list())
11-
->filter(fn (string $timezone) => str_contains(strtolower($timezone), strtolower($query)))
12-
->values()
13-
->all());
6+
$applicationName = $skeletor->text('What is the application name?', 'Laravel', required: true);
7+
$name = $skeletor->text('What is the demo username?', 'John Doe', required: true);
8+
$email = $skeletor->text('What is the demo email?', 'admin@example.com', required: true);
9+
$password = $skeletor->password('What is the demo password?', 'password', required: true);
10+
$timezone = $skeletor->search(
11+
'Which timezone would you like to use?',
12+
fn (string $query) => collect(timezone_identifiers_list())
13+
->filter(fn (string $timezone) => str_contains(strtolower($timezone), strtolower($query)))
14+
->values()
15+
->all()
16+
);
1417

1518
// If the user entered a name, replace the APP_NAME value in the .env file
1619
if ($applicationName) {

0 commit comments

Comments
 (0)