Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Promoted dataTransferObject and validationErrors #213

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

tristankenney
Copy link
Contributor

Hello! Just started using the library, and we're really enjoying it.

One use case that isn't easily supported (as far as I can see) is being able to access the results of a ValidationException – at present they are concatenated into a string.

This doesn't really work for our use case as we need to access individual messages and perform post-processing on the exceptions.

There's a number of ways that this could be done, but I thought the least invasive would be making the validationErrors available as a property (dataTransferObject has been promoted more for completeness).

@brendt brendt merged commit dd25b02 into spatie:master Jun 1, 2021
@brendt
Copy link
Contributor

brendt commented Jun 1, 2021

Thanks!

@brendt
Copy link
Contributor

brendt commented Jun 1, 2021

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants