jeudi 13 novembre 2014

Extending Laravel's Validator Class


Vote count:

0




I am using the Laravel's validator class, and when validation fails I print out the errors with this method:



$validator->messages();


The method returns a multi dimensional array, I need a single dimensional array.



$validator->net_method();


How will I go about extending a new method to return the errors in a different format?



asked 1 min ago







Extending Laravel's Validator Class

Aucun commentaire:

Enregistrer un commentaire