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


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

結局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
});