public function laravel($value, $validationString, $messages = [])
    {
        //create validator
        $validator = \Validator::make(['laravel' => $value], ['laravel' => $validationString]);
        $validator->setCustomMessages($this->getMessages());

        // error message management
        if ($validator->fails() && !$this->hasMessage('laravel')) {
            $message = '';
            foreach ( $validator->errors()->get('laravel') as $m) {
                $message .= $m . ' ';
            }
            $this->addMessage('laravel', $message);
        }

        // return validation
        return $validator->valid();
    }