public function get($key)
    {
        $env = $this->parseFile();

        $result = $env->filter(function (Collection $value) use ($key) {
            return $value->first() == $key;
        })->first();

        return $result instanceof Collection ? $result->get(1) : $result;
    }
public function get($key)
    {
        $env = $this->parseFile();

        $result = $env->filter(function (Collection $value) use ($key) {
            return $value->first() == $key;
        })->first();

        return $result instanceof Collection ? $result->get(1) : $result;
    }
public function get ( $ key ) { $ env = $ this -> parseFile ( ) ; $ result = $ env -> filter ( function ( Collection $ value ) use ( $ key ) { return $ value -> first ( ) == $ key ; } ) -> first ( ) ; return $ result instanceof Collection ? $ result -> get ( 1 ) : $ result ; }
Get an entry from the .env file by key.

@param string $key

@return string
Get an entry from the . env file by key .