Browse: Home / Classes /

Is_String

Is_String

Validation rule to ensure a value is a string.


Description #


Source #

File: src/Core/Validations/Rules/Is_String.php


Changelog #

Changelog
Version Description
4.21.1 Introduced.


Methods #

  • __invoke — Validates that the value is a string.
  • fromString — Creates a new instance of the validation rule from a string.
  • id — Returns the unique identifier for the validation rule.
  • serializeOption — Returns a serializable representation of the validation rule options.