mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-05 22:49:48 +01:00
19 lines
313 B
PHP
19 lines
313 B
PHP
<?php
|
|
|
|
namespace Rakit\Validation\Rules;
|
|
|
|
use Rakit\Validation\Rule;
|
|
|
|
class Present extends Rule
|
|
{
|
|
protected $implicit = true;
|
|
|
|
protected $message = "The :attribute must be present";
|
|
|
|
public function check($value)
|
|
{
|
|
return $this->validation->hasValue($this->attribute->getKey());
|
|
}
|
|
|
|
}
|