Skip to content
oliveira-filipe edited this page Jun 15, 2017 · 1 revision

Sets the content of the given backup or the current .env.

   $env = new DotenvEditor();

   // Changes the value of the Database name and username
   $env->changeEnv([
       'DB_DATABASE'   => 'laravel-news',
       'DB_USERNAME'   => 'diaafares',
   ]);