1.0.4 • Published 7 years ago
adonis-pusher v1.0.4
adonis-pusher
Pusher provider for AdonisJS
Install
adonis install adonis-pusherYou need to add the provider to AdonisJS at start/app.js:
const providers = [
...
'adonis-pusher/providers/Pusher'
];And in your .env file
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_SECRET_KEY=then you can simply call it from within controllers etc:
const Pusher = use('Pusher');