Contains
class Contains implements Stringable (View source)
Properties
| protected array | $values | The values that should be contained in the attribute. |
Methods
string
__toString()
Convert the rule to a validation string.
Details
__construct(Arrayable|UnitEnum|array|string $values)
Create a new contains rule instance.
string
__toString()
Convert the rule to a validation 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.