Using Request Methods
Explore how to use request methods in AdonisJs to capture values from submitted HTML forms and retrieve URL query parameters. This lesson guides you through working with CSRF protection, handling inputs with request.input() and request.only(), and managing data from both forms and URLs effectively in your controllers and routes.
We'll cover the following...
We'll cover the following...
Getting values from a submitted form
Let’s say we want to get the values from a submitted form. In the code below, we will create ...