public function validate()
    {
        $validator = Validator::make($this->toArray(), $this->rules,
            $this->messages);
        if ($validator->fails()) {
            $this->errors = $validator->messages();

            return false;
        } else return true;
    }