mardi 31 janvier 2017

Lumen by Laravel - Validation on Routes vs. Validation in Models

I wonder which solution is the best one for creating a professional secure Restful API by Lumen.

Lumen lets validating on routes as described on its documentation. As described on the documentation, validation in models/controllers is easy by Validator::make. The question is, which one is the best professional choice when it comes to validating and inserting data.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kObM3l
via IFTTT

Aucun commentaire:

Enregistrer un commentaire