Sets the response body content.
@param string $body The content for the response body
@return $this Fluent interface
setBody(string $body): selfGets the current response body content.
@return string The response body content
getBody(): stringAdds an attribute to the HTML body tag.
@param string $attribute Attribute name
@param string|array $value Attribute value or array of values
@return void
addBodyAttribute(string $attribute, string|array $value): void$this->addBodyAttribute('data-turbo', 'false');Removes an attribute from the HTML body tag.
@param string $attribute Attribute name
@return void
removeBodyAttribute(string $attribute): voidGets the value of a specific body attribute.
@param string $attribute Attribute name
@return string|array Value of the attribute
getBodyAttribute(string $attribute): string|array