#2525 fixed php docs

This commit is contained in:
ghermans 2020-02-25 03:38:36 +01:00
parent 3365924529
commit b9a6d2e6e9
1 changed files with 9 additions and 0 deletions

View File

@ -85,6 +85,9 @@ class install extends Command
}
}
/**
* Create a new .env file.
*/
public function createEnvFile()
{
try {
@ -109,6 +112,9 @@ class install extends Command
}
}
/**
* Add the database credentials to the .env file.
*/
public function addDatabaseDetails()
{
$dbName = $this->ask('What is the database name to be used by bagisto');
@ -120,6 +126,9 @@ class install extends Command
$this->envUpdate('DB_PASSWORD=', $dbPass);
}
/**
* Update the .env values.
*/
public static function envUpdate($key, $value)
{
$path = base_path() . '/.env';