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.