mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-13 13:10:09 +01:00
18 lines
299 B
PHP
18 lines
299 B
PHP
<?php
|
|
|
|
namespace Rakit\Validation\Rules;
|
|
|
|
use Rakit\Validation\Rule;
|
|
|
|
class Ipv6 extends Rule
|
|
{
|
|
|
|
protected $message = "The :attribute is not valid IPv6 Address";
|
|
|
|
public function check($value)
|
|
{
|
|
return filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) !== false;
|
|
}
|
|
|
|
}
|