UserRelationRule
in package
implements
Rule, DataAwareRule
Class UserRelationRule.
Table of Contents
Interfaces
- Rule
- DataAwareRule
Properties
- $attribute : string
- $data : array<string|int, mixed>
Methods
Properties
$attribute
protected
string
$attribute
$data
protected
array<string|int, mixed>
$data
= []
Methods
message()
public
message() : string
Return values
stringpasses()
public
passes(mixed $attribute, mixed $value) : bool
Parameters
- $attribute : mixed
- $value : mixed
Tags
Return values
boolsetData()
Set the data under validation.
public
setData(array<string|int, mixed> $data) : $this
Parameters
- $data : array<string|int, mixed>