Throw Laravel ValidationException Manually for API Errors
Originally published at recca0120.github.io
Scenario
When calling an external API and receiving an error response, I want to wrap the error as a ValidationException so the frontend can display it the same way as form validation errors.
Solution
use I...
recca0120.hashnode.dev1 min read