Lucid orm and query builder access inside validator

#1

i want to use lucid orm and query builder inside validator.
how to do that?

0 Likes

#2
const Database = use('Database')

And:

const YourModel = use('App/Models/YourModel')

Docs.

3 Likes