Update Install.php

This commit is contained in:
gusaindeepak54 2020-09-18 12:53:30 +05:30
parent 891ae5c085
commit e6400b04aa
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ class Install extends Command
try {
File::copy('.env.example', '.env');
Artisan::call('key:generate');
$this->envUpdate('APP_URL=', 'http://localhost:8000');
$default_app_url = 'http://localhost:8000';
$input_app_url = $this->ask('Please Enter the APP URL : ');
$this->envUpdate('APP_URL=', $input_app_url ? $input_app_url : $default_app_url );
$locale = $this->choice('Please select the default locale or press enter to continue', ['ar', 'en', 'fa', 'nl', 'pt_BR'], 1);
$this->envUpdate('APP_LOCALE=', $locale);