Hi @mohmmaedfayez make sure you set this in your .env file
BROADCAST_DRIVER=pusher
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to use pusher with laravel 5.6 and vue.js but i'm always getting error message
uncaught exception: You must pass your app key when you instantiate Pusher.
i already created free pusher account and i posted my appkey at .env file
PUSHER_APP_ID=772696 PUSHER_APP_KEY=dd1cd7da28e211a41bd7 PUSHER_APP_SECRET=5df9e7be8081a078c1d9 PUSHER_APP_CLUSTER=eu
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
and at bootstrab.js i already created new echo instance and posted my pusher settings like this
import Echo from 'laravel-echo' window.Pusher = require('pusher-js');
window.Echo = new Echo({ broadcaster: 'pusher', // key: 'dd1cd7da28e211a41bd7', // broadcaster: 'pusher', key: process.env.MIX_PUSHER_APP_KEY, cluster:process.env.MIX_PUSHER_APP_CLUSTER, encrypted: true });
pusher.log=function(message) { window.console.log(message) }
can some body help to solve this issue please...
Please or to participate in this conversation.