How do you ensure validations remain synchronized between front-end and back-end teams when working with laravel
?
While I found some information in this post, I am curious about how it specifically applies to laravel
.
I came across the laravel js validation package, but the issue arises when the front-end and back-end projects aren't aligned. In my case, the front-end is developed using vue.js
.
My second question pertains to cases where validations are stored in the database rather than in the formRequest
. For example, if I have an API
for displaying items that require various regex validations. Sending these validations along with the items can pose security risks. What steps should be taken in such scenarios?