X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/vendor/illuminate/support
home
/
gfecatvj
/
sites
/
vendor
/
illuminate
/
support
/
📁
..
📄
AggregateServiceProvider.php
(995 B)
📄
Arr.php
(15.7 KB)
📄
Carbon.php
(115 B)
📄
Collection.php
(31.57 KB)
📄
Composer.php
(2.33 KB)
📄
ConfigurationUrlParser.php
(4.23 KB)
📄
DateFactory.php
(7.83 KB)
📄
Enumerable.php
(21.56 KB)
📄
Env.php
(2.63 KB)
📁
Facades
📄
Fluent.php
(3.79 KB)
📄
HigherOrderCollectionProxy.php
(1.38 KB)
📄
HigherOrderTapProxy.php
(665 B)
📄
HigherOrderWhenProxy.php
(1.28 KB)
📄
HtmlString.php
(877 B)
📄
InteractsWithTime.php
(1.55 KB)
📄
LICENSE.md
(1.05 KB)
📄
LazyCollection.php
(31.83 KB)
📄
Manager.php
(3.98 KB)
📄
MessageBag.php
(9.52 KB)
📄
NamespacedItemResolver.php
(3.19 KB)
📄
Optional.php
(2.58 KB)
📄
Pluralizer.php
(3.13 KB)
📄
ProcessUtils.php
(2 KB)
📄
Reflector.php
(1.34 KB)
📄
ServiceProvider.php
(9.29 KB)
📄
Str.php
(17.95 KB)
📄
Stringable.php
(15.12 KB)
📁
Testing
📁
Traits
📄
ViewErrorBag.php
(2.56 KB)
📄
composer.json
(1.5 KB)
📄
helpers.php
(13.22 KB)
Editing: Env.php
<?php namespace Illuminate\Support; use Dotenv\Repository\Adapter\EnvConstAdapter; use Dotenv\Repository\Adapter\PutenvAdapter; use Dotenv\Repository\Adapter\ServerConstAdapter; use Dotenv\Repository\RepositoryBuilder; use PhpOption\Option; class Env { /** * Indicates if the putenv adapter is enabled. * * @var bool */ protected static $putenv = true; /** * The environment repository instance. * * @var \Dotenv\Repository\RepositoryInterface|null */ protected static $repository; /** * Enable the putenv adapter. * * @return void */ public static function enablePutenv() { static::$putenv = true; static::$repository = null; } /** * Disable the putenv adapter. * * @return void */ public static function disablePutenv() { static::$putenv = false; static::$repository = null; } /** * Get the environment repository instance. * * @return \Dotenv\Repository\RepositoryInterface */ public static function getRepository() { if (static::$repository === null) { $adapters = array_merge( [new EnvConstAdapter, new ServerConstAdapter], static::$putenv ? [new PutenvAdapter] : [] ); static::$repository = RepositoryBuilder::create() ->withReaders($adapters) ->withWriters($adapters) ->immutable() ->make(); } return static::$repository; } /** * Gets the value of an environment variable. * * @param string $key * @param mixed $default * @return mixed */ public static function get($key, $default = null) { return Option::fromValue(static::getRepository()->get($key)) ->map(function ($value) { switch (strtolower($value)) { case 'true': case '(true)': return true; case 'false': case '(false)': return false; case 'empty': case '(empty)': return ''; case 'null': case '(null)': return; } if (preg_match('/\A([\'"])(.*)\1\z/', $value, $matches)) { return $matches[2]; } return $value; }) ->getOrCall(function () use ($default) { return value($default); }); } }
Upload File
Create Folder