I'm trying to set the environment variable from controller but it throws an "Call to undefined method Dotenv\Dotenv::setEnvironmentVariable()"
$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/2LBH7k9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire