argument('key'); $value = $this->argument('value'); if (file_exists($path)) { file_put_contents($path, str_replace( $name . '=' . env($name), $name . '=' . $value, file_get_contents($path) )); } $this->info('>> Changed value! It may now be accessed via env() or config() if there\'s a file for it.'); } }