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);