AdonisJS - Using Validators with resource routes
First, install the Validator using the adonis command: adonis install @adonisjs/validtor Create a resource route adonis make:controller PostController --resource Define the route in start/route.js //.. Route.resource("posts", "PostController") //.. Now, we can make a Validator for /posts/store a d o n i s m a k e : v a l i d a t o r S t o r e P o s t This will create a validator in /app/Validators. ...