Validation of form fields
Create the form.
Create a Request file.
It prescribes rules and messages.
Plug in the controller, in a method where there is a post request and the file to validate field.
Middleware has validated field. Used to filter queries. For example, to allow access to certain of ranting only to users who meet the conditions. Plus carry out steps in the verification process. For example, blocked razlozhenii and redirect on the main.