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

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

        return $copy;
    }
public function withParam ( $ name , $ value ) { $ copy = clone $ this ; $ copy -> params = Hash :: insert ( $ copy -> params , $ name , $ value ) ; return $ copy ; }
Update the request with a new routing parameter

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

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