LoginSignup
2
0

More than 3 years have passed since last update.

[メモ]Laravel Echoでbroadcasting/auth 404 NotFound

Last updated at Posted at 2019-07-04

Laravel5.5で公式通りにEchoをインスタンス化したらエラー
broadcasting/auth 404 NotFound
出るし、Pusherからうけとれなかった。

スクリーンショット 2019-07-04 20.30.27.png

結局authEndpoint:なるものを仕込んでうまくいった
http://localhostにアクセスしたときにlaravelプロジェクトを参照するようになっていれば躓かなかった模様

bootstrap.js

window.Echo = new Echo({
    authEndpoint: 'http://【ドメインlocalhostとか】/【LaravelProject名】/public/broadcasting/auth',
    broadcaster: 'pusher',
    key: 'your-pusher-key',
    cluster: 'eu',
    encrypted: true
});

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0