Laravel /broadcasting/auth Always Fails With 403 Error

后端 未结 8 2123
时光取名叫无心
时光取名叫无心 2021-01-04 03:58

I have recently delved into Laravel 5.3\'s Laravel-Echo and Pusher combination. I have successfully set up public channels and moved on to private ones. I am having trouble

8条回答
  •  甜味超标
    2021-01-04 04:22

    Check how you are authorising your channel. Depending on your setup this might help. Update your BroadcastServiceProvider with the following:

     ['auth:api']]);
    
            require base_path('routes/channels.php');
        }
    }
    

    Adds in the Auth API middleware for use with Laravel Passport.

提交回复
热议问题