diff --git a/laravel/validator.php b/laravel/validator.php index 2fe0310f..6e38c055 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -117,6 +117,26 @@ public static function register($name, $validator) static::$validators[$name] = $validator; } + /** + * Validate the target array using the specified validation rules. + * + * @return bool + */ + public function passes() + { + return $this->valid(); + } + + /** + * Validate the target array using the specified validation rules. + * + * @return bool + */ + public function fails() + { + return $this->invalid(); + } + /** * Validate the target array using the specified validation rules. *