mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Use the env function rather than getenv
This commit is contained in:
parent
bf8b722e7b
commit
8840bca990
@ -63,7 +63,7 @@ class Repository
|
||||
|
||||
// fallback to getenv if allowed to
|
||||
if ($checkEnv) {
|
||||
return $this->settings[$name] = getenv(strtoupper($name));
|
||||
return $this->settings[$name] = env(strtoupper($name));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ class LoadConfigServiceProvider extends ServiceProvider
|
||||
$allowedOrigins[] = $domain;
|
||||
}
|
||||
} else {
|
||||
$allowedOrigins[] = getenv('APP_URL');
|
||||
$allowedOrigins[] = env('APP_URL');
|
||||
}
|
||||
|
||||
$this->app->config->set('cors.paths.api/v1/*.allowedOrigins', $allowedOrigins);
|
||||
|
Loading…
x
Reference in New Issue
Block a user