26 lines
438 B
PHP
Raw Normal View History

2025-03-11 13:34:12 +08:00
<?php
namespace Illuminate\Contracts\Validation;
/**
* @deprecated see ValidationRule
*/
interface Rule
{
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
* @return bool
*/
public function passes($attribute, $value);
/**
* Get the validation error message.
*
* @return string|array
*/
public function message();
}