mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-04 16:51:14 +01:00
18 lines
278 B
PHP
18 lines
278 B
PHP
|
<?php
|
||
|
|
||
|
namespace Rakit\Validation\Rules;
|
||
|
|
||
|
use Rakit\Validation\Rule;
|
||
|
|
||
|
class Email extends Rule
|
||
|
{
|
||
|
|
||
|
protected $message = "The :attribute is not valid email";
|
||
|
|
||
|
public function check($value)
|
||
|
{
|
||
|
return filter_var($value, FILTER_VALIDATE_EMAIL) !== false;
|
||
|
}
|
||
|
|
||
|
}
|