\App\RulesContinuousCharacter

不能出现连续的字符

Class ContinuousCharacter

Summary

Methods
Properties
Constants
__construct()
passes()
message()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$str
N/A

Properties

$str

$str : string

Type

string

Methods

__construct()

__construct(string  $str = '\/') 

Create a new rule instance.

Parameters

string $str

passes()

passes(string  $attribute, mixed  $value) : boolean

Determine if the validation rule passes.

Parameters

string $attribute
mixed $value

Returns

boolean

message()

message() : string

Get the validation error message.

Returns

string