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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire