Start Form validating

Form validating

One method of registering custom validation rules is using rule objects.

View example » Parsley is shipped with more than a dozen useful validators.

If not enough, use the awesome Parsley extra Ajax validator or tons of other extended validators provided by the community.

As mentioned previously, Laravel will automatically redirect the user back to their previous location.

In addition, all of the validation errors will automatically be flashed to the session.

Like no other form validation library, simply write in English your requirements inside your form HTML tags, Parsley will do the rest!

No need to write even a single Java Script line for simple form validation.

Again, notice that we did not have to explicitly bind the error messages to the view in our Forcing A Unique Rule To Ignore A Given ID: Sometimes, you may wish to ignore a given ID during the unique check.