src/Utils/Dotenv.php
public function set($variable, $value = '', $export = false)
    {
        $line = $this->composeLine($variable, $value, $export);
        $number = $this->has($variable) ? $this->line_numbers[$variable] : null;
        $this->writeLine($line, $number);
        $this->load();

        return $line;
    }
public function set($variable, $value = '', $export = false)
    {
        $line = $this->composeLine($variable, $value, $export);
        $number = $this->has($variable) ? $this->line_numbers[$variable] : null;
        $this->writeLine($line, $number);
        $this->load();

        return $line;
    }
public function set ( $ variable , $ value = '' , $ export = false ) { $ line = $ this -> composeLine ( $ variable , $ value , $ export ) ; $ number = $ this -> has ( $ variable ) ? $ this -> line_numbers [ $ variable ] : null ; $ this -> writeLine ( $ line , $ number ) ; $ this -> load ( ) ; return $ line ; }
Set an environment variable to a value.
@param string $variable
@param mixed $value
@param bool $export
@return string|void
Set an environment variable to a value .