|
3 | 3 | use NiftyCo\Skeletor\Skeletor; |
4 | 4 |
|
5 | 5 | 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 | + ); |
14 | 17 |
|
15 | 18 | // If the user entered a name, replace the APP_NAME value in the .env file |
16 | 19 | if ($applicationName) { |
|
0 commit comments