From 06873511064dd2b5ed2faa6ff1ad87c3210185ea Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 11 May 2022 13:14:51 +0200 Subject: [PATCH] Update install command for new site name syntax --- src/Commands/HydeInstallCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/HydeInstallCommand.php b/src/Commands/HydeInstallCommand.php index 37f4a7fc..11a5bc2f 100644 --- a/src/Commands/HydeInstallCommand.php +++ b/src/Commands/HydeInstallCommand.php @@ -121,8 +121,8 @@ protected function updateSiteName(): void { $config = file_get_contents(Hyde::path('config/hyde.php')); $config = str_replace( - "'name' => env('SITE_NAME', 'HydePHP'),", - "'name' => env('SITE_NAME', '".$this->siteName."'),", + "'name' => ".'$siteName'." = env('SITE_NAME', 'HydePHP'),", + "'name' => ".'$siteName'." = env('SITE_NAME', '".$this->siteName."'),", $config ); file_put_contents(Hyde::path('config/hyde.php'), $config);