public function withData($name, $value)
    {
        $copy = clone $this;
        $copy->data = Hash::insert($copy->data, $name, $value);

        return $copy;
    }
public function withData($name, $value)
    {
        $copy = clone $this;
        $copy->data = Hash::insert($copy->data, $name, $value);

        return $copy;
    }
public function withData ( $ name , $ value ) { $ copy = clone $ this ; $ copy -> data = Hash :: insert ( $ copy -> data , $ name , $ value ) ; return $ copy ; }
Update the request with a new request data element.

Returns an updated request object. This method returns
a *new* request object and does not mutate the request in-place.

Use `withParsedBody()` if you need to replace the all request data.

@param string $name The dot separated path to insert $value at.
@param mixed $value The value to insert into the request data.
@return static
Update the request with a new request data element .