Working on form

This commit is contained in:
2021-04-17 14:10:14 +02:00
parent 6c6301138a
commit fae7338694
9 changed files with 44 additions and 62 deletions

View File

@@ -0,0 +1,16 @@
import { schema } from '@ioc:Adonis/Core/Validator'
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class FormValidator {
constructor (protected ctx: HttpContextContract) {
}
public schema = schema.create({
name: schema.string(),
email: schema.string(),
subject: schema.string(),
content: schema.string()
})
public messages = {}
}