Never allow Setting facade to lookup env
This commit is contained in:
@@ -46,11 +46,10 @@ class Repository
|
||||
*
|
||||
* @param string $name
|
||||
* @param string|null $default
|
||||
* @param bool $checkEnv
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function get($name, $default = null, $checkEnv = true)
|
||||
public function get($name, $default = null)
|
||||
{
|
||||
// if we've not loaded the settings, load them now
|
||||
if (!$this->settings) {
|
||||
@@ -62,11 +61,6 @@ class Repository
|
||||
return $this->settings[$name];
|
||||
}
|
||||
|
||||
// fallback to getenv if allowed to
|
||||
if ($checkEnv && ($this->settings[$name] = env(strtoupper($name)))) {
|
||||
return $this->settings[$name];
|
||||
}
|
||||
|
||||
return $default;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user