Search⌘ K
AI Features

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.

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 ...