class SeeInHtml extends Constraint (View source)

Properties

protected string $content

The string under validation.

protected bool $ordered

Indicates the values must appear in order.

protected bool $negate

Indicates whether to negate the assertion.

protected string $failedValue

The last value that failed to pass validation.

Methods

__construct(string $content, $ordered = false, $negate = false)

Create a new constraint instance.

bool
matches(array $values)

Determine if the rule passes validation.

string
failureDescription(array $values)

Get the description of the failure.

string|null
normalize(string $value)

Normalize the given value.

string
toString()

Get a string representation of the object.

Details

__construct(string $content, $ordered = false, $negate = false)

Create a new constraint instance.

Parameters

string $content
$ordered
$negate

bool matches(array $values)

Determine if the rule passes validation.

Parameters

array $values

Return Value

bool

string failureDescription(array $values)

Get the description of the failure.

Parameters

array $values

Return Value

string

protected string|null normalize(string $value)

Normalize the given value.

Parameters

string $value

Return Value

string|null

string toString()

Get a string representation of the object.

Return Value

string

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.