We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
You can use Model Validation Rules and FormRequest/Request Validaiton Rules.
Model Validation Rules
FormRequest/Request Validaiton Rules
So there are Scenarios:
Form
Rest Create
Should you use a Model Validation regardless? Why are there 2 methods?
Model Validation
Aucun commentaire:
Enregistrer un commentaire