home
/
zktecojo
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Config
➕ New
📤 Upload
✎ Editing:
EnvironmentVariables.php
← Back
<?php namespace Illuminate\Config; /** * PHP $_ENV loader for protecting sensitive configuration options. * * Inspired by the wonderful "Dotenv" library by Vance Lucas. */ class EnvironmentVariables { /** * The environment loader implementation. * * @var \Illuminate\Config\EnvironmentVariablesLoaderInterface $loader */ protected $loader; /** * The server environment instance. * * @param \Illuminate\Config\EnvironmentVariablesLoaderInterface $loader * @return void */ public function __construct(EnvironmentVariablesLoaderInterface $loader) { $this->loader = $loader; } /** * Load the server variables for a given environment. * * @param string $environment */ public function load($environment = null) { foreach ($this->loader->load($environment) as $key => $value) { $_ENV[$key] = $value; $_SERVER[$key] = $value; putenv("{$key}={$value}"); } } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel