class
Illuminate
/
Validation
/
Rules
/
Can
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Can
Implements
Properties
protected
$ability string
The ability to check.
Default: null
protected
$arguments array
The arguments to pass to the authorization check.
Default: null
Methods
public
__construct ( $ability , array $arguments ) : void
Constructor.
Parameters
- $ability string
- $arguments array
public
passes ( $attribute , $value ) : bool
Determine if the validation rule passes.
Parameters
- $attribute string
- $value mixed
public
message ( ) : array
Get the validation error message.