@@ -250,10 +250,11 @@ class SetupController extends Controller
|
|||||||
try {
|
try {
|
||||||
(new Dotenv($dir, $file))->load();
|
(new Dotenv($dir, $file))->load();
|
||||||
|
|
||||||
$envValue = env(strtoupper($key)) ?: 'null';
|
$envKey = strtoupper($key);
|
||||||
|
$envValue = env($envKey) ?: 'null';
|
||||||
|
|
||||||
file_put_contents($path, str_replace(
|
file_put_contents($path, str_replace(
|
||||||
$envValue, $value, file_get_contents($path)
|
$envKey.'='.$envValue, $envKey.'='.$value, file_get_contents($path)
|
||||||
));
|
));
|
||||||
} catch (InvalidPathException $e) {
|
} catch (InvalidPathException $e) {
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user