Trying to set the environment variable from controller using phpdotenv package but it throws an error "Call to undefined method Dotenv\Dotenv::setEnvironmentVariable()"
use Dotenv\Dotenv;
$env = new Dotenv(app()->environmentPath(), app()->environmentFile());
$env->setEnvironmentVariable('APP_ENV_TEST', 'testing');
Laravel Version: 5.6
vlucas/phpdotenv: 2.4
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LBf3NC
via IFTTT
Aucun commentaire:
Enregistrer un commentaire