MongolidLaravel\MongolidModel::errors PHP Method

errors() public method

Get the contents of errors attribute.
public errors ( ) : Illuminate\Support\MessageBag
return Illuminate\Support\MessageBag Validation errors
    public function errors() : MessageBag
    {
        if (!$this->errors) {
            $this->errors = new MessageBag();
        }
        return $this->errors;
    }