@jrmc/adonis-attachment
Version:
Turn any field on your Lucid model to an attachment data type
20 lines (19 loc) • 378 B
JavaScript
/**
* @jrmc/adonis-attachment
*
* @license MIT
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
*/
export const defaultOptionsDecorator = {
disk: undefined,
folder: 'uploads',
preComputeUrl: false,
variants: [],
meta: false,
rename: true,
};
export const defaultStateAttributeMixin = {
attached: [],
detached: [],
dirtied: [],
};