Fixed installer db prefix empty..

This commit is contained in:
Cüneyt Şentürk 2023-07-07 11:33:11 +03:00
parent ff5aaeba79
commit 5eb1ef0156

View File

@ -205,7 +205,7 @@ class Installer
public static function saveDbVariables($host, $port, $database, $username, $password, $prefix = null) public static function saveDbVariables($host, $port, $database, $username, $password, $prefix = null)
{ {
$prefix = !is_null($prefix) ? $prefix : strtolower(Str::random(3) . '_'); $prefix = !empty($prefix) ? $prefix : strtolower(Str::random(3) . '_');
// Update .env file // Update .env file
static::updateEnv([ static::updateEnv([