src/Valuestore.php
public function pull(string $name)
    {
        $value = $this->get($name);

        $this->forget($name);

        return $value;
    }
public function pull(string $name)
    {
        $value = $this->get($name);

        $this->forget($name);

        return $value;
    }
public function pull ( string $ name ) { $ value = $ this -> get ( $ name ) ; $ this -> forget ( $ name ) ; return $ value ; }
Get and forget a value from the store.

@param string $name

@return null|string
Get and forget a value from the store .