run:R W Run
DIR
2026-04-08 19:39:26
R W Run
DIR
2026-04-08 19:48:28
R W Run
DIR
2026-04-08 19:39:24
R W Run
995 By
2026-04-08 19:32:27
R W Run
15.7 KB
2026-04-08 19:32:29
R W Run
115 By
2026-04-08 19:32:28
R W Run
31.56 KB
2026-04-08 19:32:28
R W Run
2.33 KB
2026-04-08 19:32:29
R W Run
4.17 KB
2026-04-08 19:32:28
R W Run
7.83 KB
2026-04-08 19:32:28
R W Run
21.56 KB
2026-04-08 19:32:28
R W Run
2.63 KB
2026-04-08 19:32:29
R W Run
3.79 KB
2026-04-08 19:32:28
R W Run
1.38 KB
2026-04-08 19:32:28
R W Run
665 By
2026-04-08 19:32:29
R W Run
1.28 KB
2026-04-08 19:32:28
R W Run
877 By
2026-04-08 19:32:29
R W Run
1.55 KB
2026-04-08 19:32:27
R W Run
1.05 KB
2026-04-08 19:32:27
R W Run
31.83 KB
2026-04-08 19:32:27
R W Run
3.98 KB
2026-04-08 19:32:29
R W Run
9.19 KB
2026-04-08 19:32:28
R W Run
3.19 KB
2026-04-08 19:32:28
R W Run
2.58 KB
2026-04-08 19:32:27
R W Run
3.13 KB
2026-04-08 19:32:27
R W Run
2 KB
2026-04-08 19:32:29
R W Run
9.27 KB
2026-04-08 19:32:28
R W Run
17.94 KB
2026-04-08 19:32:27
R W Run
14.63 KB
2026-04-08 19:32:28
R W Run
2.56 KB
2026-04-08 19:32:27
R W Run
13.22 KB
2026-04-08 19:32:29
R W Run
error_log
📄Env.php
1<?php
2
3namespace Illuminate\Support;
4
5use Dotenv\Repository\Adapter\EnvConstAdapter;
6use Dotenv\Repository\Adapter\PutenvAdapter;
7use Dotenv\Repository\Adapter\ServerConstAdapter;
8use Dotenv\Repository\RepositoryBuilder;
9use PhpOption\Option;
10
11class Env
12{
13 /**
14 * Indicates if the putenv adapter is enabled.
15 *
16 * @var bool
17 */
18 protected static $putenv = true;
19
20 /**
21 * The environment repository instance.
22 *
23 * @var \Dotenv\Repository\RepositoryInterface|null
24 */
25 protected static $repository;
26
27 /**
28 * Enable the putenv adapter.
29 *
30 * @return void
31 */
32 public static function enablePutenv()
33 {
34 static::$putenv = true;
35 static::$repository = null;
36 }
37
38 /**
39 * Disable the putenv adapter.
40 *
41 * @return void
42 */
43 public static function disablePutenv()
44 {
45 static::$putenv = false;
46 static::$repository = null;
47 }
48
49 /**
50 * Get the environment repository instance.
51 *
52 * @return \Dotenv\Repository\RepositoryInterface
53 */
54 public static function getRepository()
55 {
56 if (static::$repository === null) {
57 $adapters = array_merge(
58 [new EnvConstAdapter, new ServerConstAdapter],
59 static::$putenv ? [new PutenvAdapter] : []
60 );
61
62 static::$repository = RepositoryBuilder::create()
63 ->withReaders($adapters)
64 ->withWriters($adapters)
65 ->immutable()
66 ->make();
67 }
68
69 return static::$repository;
70 }
71
72 /**
73 * Gets the value of an environment variable.
74 *
75 * @param string $key
76 * @param mixed $default
77 * @return mixed
78 */
79 public static function get($key, $default = null)
80 {
81 return Option::fromValue(static::getRepository()->get($key))
82 ->map(function ($value) {
83 switch (strtolower($value)) {
84 case 'true':
85 case '(true)':
86 return true;
87 case 'false':
88 case '(false)':
89 return false;
90 case 'empty':
91 case '(empty)':
92 return '';
93 case 'null':
94 case '(null)':
95 return;
96 }
97
98 if (preg_match('/\A([\'"])(.*)\1\z/', $value, $matches)) {
99 return $matches[2];
100 }
101
102 return $value;
103 })
104 ->getOrCall(function () use ($default) {
105 return value($default);
106 });
107 }
108}
109