Closed Bluefitdev closed 4 years ago
@setup
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
try {
$dotenv->load();
$dotenv->required(['DEPLOY_PATH'])->notEmpty();
} catch ( Exception $e ) {
echo $e->getMessage();
}
@endsetup
Thanks for the heads up and apologies for the delay in fixing. The latest version (3.0) fixes this by upgrading phpdotenv to ^4.0 which Laravel 7 uses.
If you have this issue in an existing Laravel 7 project, @WbTOne fix above is all you need.
If you need to use this Envoy script in a new Laravel 5 or 6 project, the readme has the v2 file you need: https://github.com/papertank/envoy-deploy#laravel-5-6
Hi There,
Why is this happening?
My laravel version is 7
It was fine for me on laravel 6.. probably because the dotenv version is changed in laravel 7?
Thanks