14 lines
249 B
PHP
14 lines
249 B
PHP
|
<?php
|
||
|
|
||
|
namespace CustomValidations;
|
||
|
|
||
|
use Respect\Validation\Rules\AbstractRule;
|
||
|
|
||
|
class UserEmail extends AbstractRule {
|
||
|
|
||
|
public function validate($email) {
|
||
|
$user= \User::getUser($email, 'email');
|
||
|
|
||
|
return !$user->isNull();
|
||
|
}
|
||
|
}
|