D
D
dk-web2019-03-12 03:11:25
Laravel
dk-web, 2019-03-12 03:11:25

Why doesn't laravel 5.8 .env file work?

Good night ..
Some kind of nonsense, I lost a lot of time again.
Standard "config" out of the box. Everything is written in .env. Cleaned configs/caches.

window.Echo = new Echo({
    broadcaster: 'pusher',
    key: process.env.MIX_PUSHER_APP_KEY,
    cluster: process.env.MIX_PUSHER_APP_CLUSTER,
    encrypted: true
});

in .env
PUSHER_APP_ID=293713
PUSHER_APP_KEY=e630c1583049e27a757e
PUSHER_APP_SECRET=54b6ca39d992vb763b27
PUSHER_APP_CLUSTER=eu

But I am getting an error.
{"event":"pusher:error","data":{"code":4005,"message":"Path not found"}
If you specify everything explicitly... both the key and the cluster, then everything works exactly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Nesmeyanov, 2019-03-12
@SerafimArts

MIX_PUSHER_APP_KEY

It would seem that this is not so?

A
Alex Wells, 2019-03-12
@Alex_Wells

Indeed, some nonsense. There is no process.env on the CLIENT, and indeed no variables located on a secure server ... strange, you can’t say anything.
PS: if anything, then this is sarcasm. If not, go back to the client-server device.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question