Questions tagged [laravel-broadcast]
42 questions
23
votes
3 answers
Why BroadCastEvent are queued in Laravel? How to stop that?
I am working on the project which need to broadcast latitude and longitude on realtime
I have something like below
namespace App\Events;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use…

sumit
- 15,003
- 12
- 69
- 110
5
votes
0 answers
How to achieve high speed with Laravel Broadcasting
I am working on Laravel application and I need to implement Broadcasting feature. Official documentation https://laravel.com/docs/7.x/broadcasting suggests 3 ways:
Pusher.com --> Echo
laravel-websockets --> Echo
Redis --> Socket.Io --> Echo
Till…

Andrey Tushev
- 73
- 1
- 5
5
votes
2 answers
How Can I Configure Lumen To Broadcast Events via Pusher?
Lumen's docs state that "Lumen supports several broadcast drivers out of the box: Pusher, Redis, and a log driver for local development and debugging. A configuration example is included for each of these drivers. The BROADCAST_DRIVER configuration…

Feek
- 640
- 6
- 20
4
votes
1 answer
Laravel broadcast with Pusher and laravel-websockets not sending message
This is a setup with Laravel 7, following the install guide for using the pusher driver with laravel-websockets rather than Pusher.
The 'php artisan websockets:serve' is running, and has connected to the Echo client in the browser and is happily…

Dan
- 1,249
- 2
- 16
- 31
4
votes
1 answer
Class App\Http\Middleware\Authenticate:api does not exist on Broadcasting
I am having an issue with the auth:api guard working with broadcasting.
I get the error Class App\Http\Middleware\Authenticate:api does not exist if I call php artisan route:list.
BroadcastServiceProvider.php:

Jacob Hyde
- 980
- 1
- 12
- 20
4
votes
2 answers
Laravel Broadcast notification - Error "array_key_exists()" when try to send notification
I'm trying to send broadcast notification to users when data changes. But every time I try to send a notification, I get this error:
array_key_exists(): The first argument should be either a string or an integer.
Here is my notification:
class…

Mike_NotGuilty
- 2,253
- 5
- 32
- 64
4
votes
3 answers
How to test/assert if an event is broadcasted in Laravel
I am developing a Laravel application. I am using Laravel Broadcast in my application. What I am trying to do now is that I am trying to test if an event is broadcasted in Laravel.
I am broadcasting an event like this:
broadcast(new…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
3
votes
1 answer
Why Laravel Authorizing Private Broadcast Channels is not working? "channels.php" not working
I'm trying to authorize a private channel.
I'm using Vue.js as SPA, Laravel Sanctum for auth, and Laravel for api.
As the Laravel's documentation, I wrote my channel callbacks on "channels.php" under "routes" folder. But it wasn't working. It was…

Mg Mg Tint
- 213
- 1
- 3
- 11
3
votes
3 answers
Laravel WebSockets: Subscribing to private channels does not work
Software:
Laravel 5.8
Laravel WebSockets 1.1
Vue 2.6.10
In websockets.php (complete file) I have my local_cert and local_pk setup with my certificates. If I leave this option blank I cannot even connect. I also have set verify_peerto false,…

Hillcow
- 890
- 3
- 19
- 48
3
votes
2 answers
How can I connect to Laravel broadcasting from c# desktop app?
I have laravel chat application working through laravel broadcasting on laravel-echo-server. On front end I subscribe to channels and listen events using laravel-echo npm package, but how can I subscribe to channels in desktop app written on c# ?
I…

Ruben Danielyan
- 728
- 4
- 19
2
votes
1 answer
Vue.js component not updating after notification is received via websocket in Laravel
I am trying to populate the notification list on real-time but view vue component is not updating. My code so far:
app.js
require('./bootstrap');
window.Vue = require('vue');
Vue.component('notification-alert',…

MAY
- 667
- 1
- 6
- 21
1
vote
1 answer
laravel echo wont subscribe to private channel even the user is authenticated
I'm using
Laravel: 8.54
Laravel Sanctum: 2.11
Pusher Php Server: 7.0
NuxtJs: 2.15.7
pusher-js: 7.0.4
laravel-echo: 1.11.3
Event Class

pinoyCoder
- 940
- 7
- 20
1
vote
0 answers
How to send notification to specific users using Laravel Scheduler?
I ask this question while I have done researches to find clear solution for this problem but many of available answers are just how to use Laravel Scheduler itself!
So I am creating a simple website with Laravel to let users create reminders for…

James
- 27
- 1
- 7
1
vote
1 answer
laravel broadcasting Broadcasting in private chanel not working i use laravel echo
event is:
public $chat ;
public function __construct($chat)
{
$this->chat = $chat;
}
public function broadcastOn()
{
// return new Channel('recieve-chat');
return new PrivateChannel('recieve-chat' );
}
routes/channels.php…

farshid ahmadian
- 58
- 8
1
vote
0 answers
Broadcast channels not being registered in Laravel
I've been stuck with Broadcasting on private channel in authentication part. What I have done is, I made custom authEndpoint in Echo server
"authEndpoint": "/broadcastAuth",
Controller:
public function broadcastAuth(Request $request){
$channel…

user14108508
- 21
- 3