| 1 | <?php |
||
| 12 | class UserValidator extends ConfideUserValidator implements UserValidatorInterface |
||
|
|
|||
| 13 | { |
||
| 14 | |||
| 15 | public $rules = [ |
||
| 16 | 'create' => [ |
||
| 17 | 'email' => 'required|email', |
||
| 18 | 'password' => 'required|min:8', |
||
| 19 | ], |
||
| 20 | 'update' => [ |
||
| 21 | 'email' => 'required|email', |
||
| 22 | 'password' => 'required|min:8', |
||
| 23 | ] |
||
| 24 | ]; |
||
| 25 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.