class
Illuminate
/
Validation
/
Rules
/
ProhibitedIf
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ProhibitedIf
Implements
- Stringable
Properties
Methods
public
__construct ( $condition ) : void
Create a new prohibited validation rule based on a condition.
Parameters
- $condition Closure |bool
public
__toString ( ) : string
Convert the rule to a validation string.