Skip to content

Commit e53b68e

Browse files
committed
添加 验证错误信息
1 parent 82520f1 commit e53b68e

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

app/traits/ValidateError.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace app\traits;
4+
5+
trait ValidateError
6+
{
7+
/**
8+
* 验证错误信息
9+
*
10+
* @var string
11+
*/
12+
protected $error;
13+
14+
/**
15+
* 获取验证错误信息.
16+
*
17+
* @return string
18+
*/
19+
public function getError()
20+
{
21+
return $this->error;
22+
}
23+
}

0 commit comments

Comments
 (0)