jeudi 26 novembre 2015

Why are there 2 ways to Validate in Laravel 5.1?

You can use Model Validation Rules and FormRequest/Request Validaiton Rules.

So there are Scenarios:

  • Form

  • Rest Create

Should you use a Model Validation regardless? Why are there 2 methods?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire