Laravel /broadcasting/auth Always Fails With 403 Error

Error 403 /broadcasting/auth with Laravel version > 5.3 & Pusher, you need to change your code in resources/assets/js/bootstrap.js with window.Echo = new Echo({ broadcaster: ‘pusher’, key: ‘your key’, cluster: ‘your cluster’, encrypted: true, auth: { headers: { Authorization: ‘Bearer ‘ + YourTokenLogin }, }, }); And in app/Providers/BroadcastServiceProvider.php, replace Broadcast::routes() with Broadcast::routes([‘middleware’ => [‘auth:api’]]); or … Read more

Invoke pusher when mysql has changed [closed]

Invoke PubNub PUSH Message via MySQL Trigger on UPDATE, INSERT and DELETE ⚠️ Warring! this may cause slowdowns on your database. This will introduce relatively poor performance given sys exec’ing curl for every insert. Far better to also have a trigger write the message to another table and have another process checking for new rows … Read more