adonis-audit
Audit models in AdonisJS
DISCLAIMER
This is just a release for using it through NPM. Not claiming any rights over the original code developed.
How to use
Install npm module:
$ adonis install adonis-audit
Register provider
Once you have installed adonis-audit, make sure to register the provider inside start/app.js
in order to make use of it.
const providers = 'adonis-audit/providers/AuditProvider'
Using the module:
Add the following to your model's boot
method:
static { super this }
This you can start using as follows:
// createconst model = await MyModel // updateconst model = MyModelawait model // deleteconst model = MyModelawait model
Built With
- AdonisJS - The web framework used.
Versioning
SemVer is used for versioning. For the versions available, see the tags on this repository.
Authors
- Simon Tong - Developer - simontong
License
This project is licensed under the MIT License - see the LICENSE file for details.
Changelog
-
v2.0.2
- Fixed bugs for AdonisJS 4.1.
-
v2.0.1
- Removed need to pass in
ctx
parameters. - Update README and instructions.md files.
- Removed need to pass in
-
v2.0.0
- Removed ctx injection on boot.
ctx
parameters need to be passed in manually now. - Updated README to reflect new changes.
- Added this changelog.
- Removed ctx injection on boot.
-
v1.0.1
- Initial release.