You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With it, you will not need pass the .env directory, it'll transverse back directory until find the first .env (like the jQuery.closest() does). For instance:
/home/username/www/path/to/my/bootstrap.php <-- smartLoad() here
/home/username/.env
smartLoad() will transverse directories until find the first accessible .env file, or will fail.
Dotenv::smartLoad(string $startDir = __DIR__, string $filename = ".env")
:: Can thrown InvalidArgumentException:
:: Dotenv: Environment file [filename] not found or not readable from [startDir].
It'll help a lot because you will not need specifiy two directories to local env and remote env, it'll load file smartly for you or thrown an exception if no .env is found.
Alternativaly, just turns load($path) optional. If you omit it, it'll transverse from caller path.
The text was updated successfully, but these errors were encountered:
With it, you will not need pass the
.env
directory, it'll transverse back directory until find the first.env
(like thejQuery.closest()
does). For instance:smartLoad()
will transverse directories until find the first accessible.env
file, or will fail.Signature:
It'll help a lot because you will not need specifiy two directories to local env and remote env, it'll load file smartly for you or thrown an exception if no
.env
is found.Alternativaly, just turns
load($path)
optional. If you omit it, it'll transverse from caller path.The text was updated successfully, but these errors were encountered: