Use the env function rather than getenv

This commit is contained in:
James Brooks 2015-05-20 10:39:31 +01:00
parent bf8b722e7b
commit 8840bca990
2 changed files with 2 additions and 2 deletions

View File

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

View File

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