@ordent/ramenbox
v2.1.3
Published
### Setup ```` javascript const providers = [ '@adonisjs/framework/providers/AppProvider', '@adonisjs/auth/providers/AuthProvider', '@adonisjs/bodyparser/providers/BodyParserProvider', '@adonisjs/drive/providers/DriveProvid
Downloads
19
Readme
Installation
Setup
const providers = [
'@adonisjs/framework/providers/AppProvider',
'@adonisjs/auth/providers/AuthProvider',
'@adonisjs/bodyparser/providers/BodyParserProvider',
'@adonisjs/drive/providers/DriveProvider',
'adonis-drive-google/providers/DriveProvider',
'@adonisjs/cors/providers/CorsProvider',
'@adonisjs/lucid/providers/LucidProvider',
'adonis-bumblebee/providers/BumblebeeProvider',
'@adonisjs/validator/providers/ValidatorProvider',
'adonis-lucid-filter/providers/LucidFilterProvider',
'@ordent/adonis-gcp/providers/DriveProvider'
]
Controller
const RamenController = require('../../../packages/ramenbox/src/Controller/RamenController')
Model
const RamenController = require('../../../packages/ramenbox/src/Controller/RamenController')
Properties
static get properties () {
return ['id', 'username', 'password', 'email', 'created_at', 'updated_at', 'image']
}
Slug
static get slug(){
return 'email'
}
Rules
static get rules(){
return {
post: {
email: 'required|email|unique:users,email',
username: 'required'
}
}
}
Relations
static get relations(){
return ['profiles', 'tokens']
}
Sanitize
static get sanitize(){
return {
post: {
'email': 'normalize_email'
}
}
}
Transformer
const RamenTransformer = require('../../../packages/ramenbox/src/Controller/RamenController')