Cleanup
This commit is contained in:
@@ -63,10 +63,8 @@ class Repository
|
||||
}
|
||||
|
||||
// fallback to getenv if allowed to
|
||||
if ($checkEnv) {
|
||||
if ($this->settings[$name] = env(strtoupper($name))) {
|
||||
return $this->settings[$name];
|
||||
}
|
||||
if ($checkEnv && ($this->settings[$name] = env(strtoupper($name)))) {
|
||||
return $this->settings[$name];
|
||||
}
|
||||
|
||||
return $default;
|
||||
|
||||
@@ -210,7 +210,7 @@ class SetupController extends Controller
|
||||
if ($path === null || ($path !== null && file_exists($path))) {
|
||||
$path = base_path('.env');
|
||||
file_put_contents($path, str_replace(
|
||||
getenv(strtoupper($key)), $value, file_get_contents($path)
|
||||
env(strtoupper($key)), $value, file_get_contents($path)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user