public withAttribute ( string $name, mixed $value ) : self | ||
$name | string | The attribute name. |
$value | mixed | The value of the attribute. |
return | self |
public function withAttribute($name, $value)
{
$request = clone $this;
$request->setAttribute($name, $value);
return $request;
}