src/app/Logic/ENV.php
public static function set(string $key, string $value, bool $to_file = true, bool $put = true, bool $set = true)
    {
        if ($to_file) {
            self::toFile($key, $value);
        }

        if ($put) {
            putenv("$key=$value");
        }

        if ($set) {
            $_ENV[$key] = $value;
        }
    }
public static function set(string $key, string $value, bool $to_file = true, bool $put = true, bool $set = true)
    {
        if ($to_file) {
            self::toFile($key, $value);
        }

        if ($put) {
            putenv("$key=$value");
        }

        if ($set) {
            $_ENV[$key] = $value;
        }
    }
public static function set ( string $ key , string $ value , bool $ to_file = true , bool $ put = true , bool $ set = true ) { if ( $ to_file ) { self :: toFile ( $ key , $ value ) ; } if ( $ put ) { putenv ( "$key=$value" ) ; } if ( $ set ) { $ _ENV [ $ key ] = $ value ; } }
Replaces the value of the env variable in the .env file

@param string $key
@param string $value
@return bool If the file was overwritten, it returns true. When the error appears false
Replaces the value of the env variable in the . env file