Validator Adonis ada
import { schema, rules } from '@ioc:Adonis/Core/Validator'
{
slug: schema.string({}, [
rules.exists({ table: 'categories', column: 'slug' })
])
}
Asif Patel