Laravel 5 validation example | How to write validation rules in Laravel | Laravel form validation

While developing the web application we need server side form validations. Laravel does this task beautifully. In this article I'm going to explain how we can do our form validations in Laravel.

We don't need to write the form validations in our Controller code like generally people does.

Here is an example of writing form validation rules in Laravel.

For example here is the form:

When you will submit the form it will go to register route like:

It says the register route has routed to 'postRegister' function which is inside the 'RegisterController'. ...  Read More

Share This: