protected function ensureValid(array $attributes)
    {
        $validation = $this->validation->make($attributes, $this->rules());

        if ($validation->fails()) {
            throw new ValidationFailed($validation->getMessageBag());
        }

        return $this;
    }