-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update prompt texts for application details input fields
- Loading branch information
1 parent
c4a3bc3
commit 4238282
Showing
1 changed file
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,17 @@ | |
use NiftyCo\Skeletor\Skeletor; | ||
|
||
return function (Skeletor $skeletor) { | ||
$applicationName = $skeletor->text('Enter the application name:', 'Laravel', required: true); | ||
$name = $skeletor->text('Enter the demo username', 'John Doe', required: true); | ||
$email = $skeletor->text('Enter the demo email:', '[email protected]', required: true); | ||
$password = $skeletor->password('Enter the demo password:', 'password', required: true); | ||
$timezone = $skeletor->search('Which timezone do you want to use? ', fn (string $query) => collect(timezone_identifiers_list()) | ||
->filter(fn (string $timezone) => str_contains(strtolower($timezone), strtolower($query))) | ||
->values() | ||
->all()); | ||
$applicationName = $skeletor->text('What is the application name?', 'Laravel', required: true); | ||
$name = $skeletor->text('What is the demo username?', 'John Doe', required: true); | ||
$email = $skeletor->text('What is the demo email?', '[email protected]', required: true); | ||
$password = $skeletor->password('What is the demo password?', 'password', required: true); | ||
$timezone = $skeletor->search( | ||
'Which timezone would you like to use?', | ||
fn (string $query) => collect(timezone_identifiers_list()) | ||
->filter(fn (string $timezone) => str_contains(strtolower($timezone), strtolower($query))) | ||
->values() | ||
->all() | ||
); | ||
|
||
// If the user entered a name, replace the APP_NAME value in the .env file | ||
if ($applicationName) { | ||
|