mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update packages/forms/src/Components/Concerns/CanBeValidated.php
This commit is contained in:
@@ -339,9 +339,12 @@ trait CanBeValidated
|
||||
return $this->multiFieldValueComparisonRule('prohibited_unless', $statePath, $stateValues, $isStatePathAbsolute);
|
||||
}
|
||||
|
||||
public function prohibits(string | Closure $statePath, bool $isStatePathAbsolute = false): static
|
||||
/**
|
||||
* @param array<string> | string | Closure $statePaths
|
||||
*/
|
||||
public function prohibits(array | string | Closure $statePaths, bool $isStatePathAbsolute = false): static
|
||||
{
|
||||
return $this->fieldComparisonRule('prohibits', $statePath, $isStatePathAbsolute);
|
||||
return $this->multiFieldComparisonRule('prohibits', $statePaths, $isStatePathAbsolute);
|
||||
}
|
||||
|
||||
public function required(bool | Closure $condition = true): static
|
||||
|
||||
Reference in New Issue
Block a user