I will present a topic that you may know, but for me it is not entirely clear ( for the amount of time I've been using the Laravel framework ), I hope this topic can be explained here:
It turns out that I am developing a sitio web
(admin panel) and I have many controllers and files of the application and I start to ask questions,
¿Es necesario hacer validaciones con javascript y del lado de servidor en el controller la hora de enviar datos?
.
It turns out that I read out there ( Here Specifically ) that it is necessary to validate the two ways for more security to the site, but here comes the other doubt, Do not you think it will be a lot of code if I'm just sending two inputs? , so from there new questions are born about what I'm doing:
- Is it necessary to make two types of validations for the number of fields sent?
- Is it a good practice?
- How safe is it to do this? o Does not it have to do with security?
- Is it for programmer convenience to do this?
I am currently doing validations in javascript
and doing Form Request Validation
this last only if they are more than three fields.
I sincerely hope that you can clarify some things to me since still I'm in time to make changes.