e
This commit is contained in:
@@ -96,6 +96,7 @@ abstract class BaseValidator
|
||||
* @param $field
|
||||
* @param $message
|
||||
* @return bool
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
public function addError($field, $message): bool
|
||||
{
|
||||
@@ -105,6 +106,7 @@ abstract class BaseValidator
|
||||
$message = str_replace(':attribute', $field, $message);
|
||||
}
|
||||
|
||||
\addError($message,"mysql");
|
||||
$this->message = $message;
|
||||
|
||||
return $this->isFail;
|
||||
|
||||
Reference in New Issue
Block a user