How to Make Realtime Notifications in Laravel Sanctum (SPA) - Private Channel Broadcasting ? #37797
Unanswered
joneyspark
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am using Laravel -v7.x and Vue CLI two different folders for Frontend and Backend. And using Laravel Sanctum (SPA) Authentication. I want to create real-time Notifications when some Events happen in my backend. and I already configured successfully the Websockets and the public Broadcasting working fine. But when I'm trying to using PrivateChannel then backend WebSockets can run the event on the WebSockets panel I see but could not get response on the console. Can you please help me? Below I share my code.
Vue CLI
#main.js
#App.vue
#vue env
#.env
#Laravel
#Hello Event
#Hello.php
#BroadcastServiceProvider.php
#channels.php
#laravel env
#.env
#broadcasting.php
#I run the event using tinker
php artisan tinker
event(new App\Events\Hello())
Beta Was this translation helpful? Give feedback.
All reactions