ResourceTextRule
in package
implements
Rule
Class ResourceTextRule.
Table of Contents
Interfaces
- Rule
Properties
- $allowHtml : mixed
Methods
- __construct() : mixed
- allowHtml() : bool
- message() : string
- Get the validation error message.
- passes() : bool
- Determine if the validation rule passes.
Properties
$allowHtml
public
mixed
$allowHtml
= false
Methods
__construct()
public
__construct([mixed $allowHtml = false ]) : mixed
Parameters
- $allowHtml : mixed = false
allowHtml()
public
allowHtml() : bool
Return values
boolmessage()
Get the validation error message.
public
message() : string
Return values
stringpasses()
Determine if the validation rule passes.
public
passes(string $attribute, mixed $value) : bool
Parameters
- $attribute : string
- $value : mixed