You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

Enum

Implements

Properties

protected

$type string

The type of the enum.

Default: null

Methods

public

__construct ( $type ) : void

Create a new rule instance.

Parameters

  • $type string
public

passes ( $attribute , $value ) : bool

Determine if the validation rule passes.

Parameters

  • $attribute string
  • $value mixed
public

message ( ) : array

Get the validation error message.