Like any other provider, you need to register the provider inside start/app.js
file.
const providers = [
'adonisjs-bugsnag/providers/BugSnagProvider'
]
Register the following middleware inside start/kernel.js
file. Place the bugsnag middleware after the 'Adonis/Middleware/AuthInit' middleware
const globalMiddleware = [
...
'Adonis/Middleware/AuthInit',
'Adonis/Middleware/BugSnagUser'
]
The configuration is saved inside config/bugsnag.js
file. Tweak it accordingly.
To find out more, read the docs here.