Show:

Methods

validate
(
  • value
  • options
  • model
  • attribute
)

Parameters:

  • value Any
  • options Object
    • presence Boolean

      If true validates that the given value is not empty, if false, validates that the given value is empty.

    • ignoreBlank Boolean

      If true, treats an empty or whitespace string as not present

  • model Object
  • attribute String