Websockets in Laravel - Part 3: Handling Socket Server Events

  Рет қаралды 36,831

DevMarketer

DevMarketer

Күн бұрын

Пікірлер: 105
@peternguyen2423
@peternguyen2423 3 жыл бұрын
The best of the best websocket tutorials on the internet so far, thank you for helping me understand all the fundamentals of complex topic like websocket. Before, I thought websocket was the hardest thing in the world, I couldn't understand it. Now I find that applying it to my project is extremely easy after watching all your series. Please continue to make more tutorials on complicated topics like this, it will help many less intelligent and slow understanding developers like me a lot.
@lolasandrareen5026
@lolasandrareen5026 2 жыл бұрын
I learnt more than a lot from this tut, now I don't have to disturb myself about learning NodeJs
@jashanpreet832
@jashanpreet832 3 жыл бұрын
One of the best video for web sockets
@РоманСуворов-е8д
@РоманСуворов-е8д 5 жыл бұрын
30:50 "haay, you are listening port 10" just made my day!! Thanks for the tutorial!
@PildorasMusicales
@PildorasMusicales 4 жыл бұрын
Excellent! Congratulations, awesome tutorial. I like how you make pauses before making decisions and taking your time to explain other multiple possible decisions. Thank you!
@kotnikd3
@kotnikd3 6 жыл бұрын
It didnt work for me. After I changed in the following files, it started working: - broadcasting.php: 'encrypted': false - if you used 'broadcastAs() { return "NewComment"; }' method, you should change in show.blade.php: .listen('.NewComment'). Check the Laravel documentation about that dot.
@BoolFalse
@BoolFalse 5 жыл бұрын
Hey man, thanks for sharing your results.. You're really helped me to find the reason immediately ;) I've checked this case on L5.8 (for custom channel names via broadcastAs() method), and found this: 1. don't need to disable encryption from 'config/broadcasting.php/pusher.options.encrypted', and can just use as 'encrypted => true' 2. recommended to have channel names without any dashes symbols (only alphabetical characters) 3. in blade need to start with "." (dot) symbol for custom broadcast channel names only
@ciprianserban
@ciprianserban 4 жыл бұрын
Great teacher 👨‍🏫
@mrparadox9683
@mrparadox9683 4 жыл бұрын
You don't make things difficult, this is a good job!
@burnt3436
@burnt3436 3 жыл бұрын
Awesome tutorial. You're such a good teacher. Other tutorials i found just zoom past everything and not explaining (or give very little explanation) why they did it.
@librasulus
@librasulus 2 жыл бұрын
Great series, thank you for helping me clear things in my head.
@hamzanouali6051
@hamzanouali6051 6 жыл бұрын
i love you man
@futbolclipsfast
@futbolclipsfast 4 жыл бұрын
Amazing, thanks for explained so well, you are the best
@luizfernandomaltamartins4471
@luizfernandomaltamartins4471 3 жыл бұрын
Thanks for tutorial, is great.
@steveskye5989
@steveskye5989 4 жыл бұрын
Thanks for the great video !
@SaywanGanji
@SaywanGanji 2 жыл бұрын
Great tutorial
@isisoakjsjsjsjs9666
@isisoakjsjsjsjs9666 5 жыл бұрын
Hello! Weitten tuturoal does not have vadil links.
@FawzyTat
@FawzyTat 5 жыл бұрын
That was amazing and very helpful , Thank you :)
@Shaharcutenum6
@Shaharcutenum6 4 жыл бұрын
The best. Can't say much but Thanks!
@VadimBesedin
@VadimBesedin 11 ай бұрын
To broadcast an event you can use either "event(new TestEvent('Hi'))" or "broadcast(new TestEvent('Hi'))": • Use broadcast() when you explicitly want to send information to the client side and you don't have any local event listeners to trigger. • Use event() when you also have some local handlers that should catch the event, or when you have implemented queuing and you want the event to be queued.
@surajnirala9072
@surajnirala9072 6 жыл бұрын
thanks for teach us.. your videos always good
@cufs-xq2gj
@cufs-xq2gj 6 жыл бұрын
please continue with advanced blog/cms
@petiibhuzah908
@petiibhuzah908 6 жыл бұрын
your the best keep posting i do appreciate your work
@davidespigolon8170
@davidespigolon8170 6 жыл бұрын
Can you build an ecommerce in laravel?
@lolsamcute
@lolsamcute 6 жыл бұрын
Yes very well
@sigeldesu
@sigeldesu 4 жыл бұрын
Hi! I'm making a queue management system. Can I use this function to display or broadcast the called queue on the display? IF yes, Can I do it with notification sound that a queue has been called?
@misc9700
@misc9700 4 жыл бұрын
It worked for me by changing $comment->post->id to $this->comment->post->id at min 16:45
@estousemcriatividadepraumnome
@estousemcriatividadepraumnome 5 жыл бұрын
what should be used for the mission critical functionalities?
@allawitte8681
@allawitte8681 4 жыл бұрын
You are awesom! Can we expect continuation of Websockets in Laravel
@xploitguardian
@xploitguardian 3 жыл бұрын
Hi, I have a question. Why is that everytime I refresh the page assigned value coming from the event is gone? Or whenever a user go to another page, a variable holding the value from the event fired is gone. What could be the problem? I am using laravel and vue. Thank you!
@ashrafsaleh8654
@ashrafsaleh8654 5 жыл бұрын
excellent tutorial, thanks a lot
@PardeepKumar-hv7vf
@PardeepKumar-hv7vf 6 жыл бұрын
This thing is so awesome i love that way you teach ......Thank You!........
@pashamaggot
@pashamaggot 6 жыл бұрын
Thanks man ! That's actually what I was looking for. Waiting for next videos !
@moemengaballa
@moemengaballa 3 жыл бұрын
thank you very much
@Almarghulani
@Almarghulani 5 жыл бұрын
Great tutorial!
@kajmnietegomakowca1900
@kajmnietegomakowca1900 3 жыл бұрын
If you are using broadcastAs() you need to prepend '.' in listen function before channel name. For example if you specified "my-event" in Event->broadcastAs() then in laravel-echo "listen('.my-event")". That's because events are namespaced. Example 2, this is how laravel-echo sees you event without the dot: "App.Eventsmy-event", and with the dot: "App.Events.my-event"
@maherylala2153
@maherylala2153 Жыл бұрын
Pretty complete and helpful ! Nice work
@LearnphpPhpforbeginners
@LearnphpPhpforbeginners 3 жыл бұрын
Failed to connect pusher on server . How will I solve this
@rajithsam
@rajithsam 6 жыл бұрын
Really awesome!!
@UTravis
@UTravis 2 жыл бұрын
I can't tell you how helpful these sets of lessons on WebSockets have been to me
@kvpfear
@kvpfear 5 жыл бұрын
You're awesome!Thank you so much!
@BeaconofHopeNetwork
@BeaconofHopeNetwork 5 жыл бұрын
great video bang(!) happily subscribed bang(!)
@jimbuot4283
@jimbuot4283 3 жыл бұрын
You have done so much you deserve ur skills
@jimbuot4283
@jimbuot4283 3 жыл бұрын
You have done so much you deserve ur skills
@blry
@blry 6 жыл бұрын
Thanks man! Ur the best! :D
@irfanullahshakir3568
@irfanullahshakir3568 5 жыл бұрын
Good tutorial
@mohamedmanas3055
@mohamedmanas3055 3 жыл бұрын
this is awesome!! Thanks mate! :)
@iaskakho5646
@iaskakho5646 11 ай бұрын
Very good vid vue is a bit outdated
@meseretkassaye8550
@meseretkassaye8550 4 жыл бұрын
Hi,there Can you guide me how can i connect laravel event with reactJS. the reactJS app is in another folder not with blade help me please
@praisegodudeh6913
@praisegodudeh6913 3 жыл бұрын
Hey man.. did you figure it out?
@diyang3845
@diyang3845 3 жыл бұрын
AWESOME! Thanks, Could you please submit about Custom event handler on laravel websocket also?
@certificationcaci6469
@certificationcaci6469 3 жыл бұрын
great job, we appreciate it
@mohsenmahoski6659
@mohsenmahoski6659 6 жыл бұрын
thanks man. I owe you
@zabihullahsirat9731
@zabihullahsirat9731 2 жыл бұрын
I had downloaded these videos but intentionally navigate to your KZbin channel to subscribe you for ever and give you my honor to such a useful tutorial .
@paulmooney1092
@paulmooney1092 4 жыл бұрын
Awesome on Laravel 6
@ΤΟΝΙΑΧΡΙΣΤΙΔΟΥ
@ΤΟΝΙΑΧΡΙΣΤΙΔΟΥ 3 жыл бұрын
Bro why did you stop making these videos ? You were a very good teacher you had your way eplaining complex concepts making them simple !
@dafloca2002
@dafloca2002 3 жыл бұрын
Amazing tutorial! congrats and thank you, really hepls a lot.
@mohammedrowad9983
@mohammedrowad9983 6 жыл бұрын
Thank You
@onlineenergy7151
@onlineenergy7151 6 жыл бұрын
Awesome Sir. . . . . Amazing Nice Work It
@hoseahkiplangat
@hoseahkiplangat 4 жыл бұрын
Had headache trying to implement this BUT your tutorial is all I ever needed to solve this. Thanks for this tutorial
@jebbush2964
@jebbush2964 6 жыл бұрын
Please teach us how to create full feature ecommere app in Laravel, with shipping classes and dashboard. THank you
@silasgameplaychannel3391
@silasgameplaychannel3391 4 жыл бұрын
Hey, can anyone tell me about queues with pusher? Cant find information about them.
@midoriya1183
@midoriya1183 4 жыл бұрын
No written tutorial... Great tutorial by the way but voice make me so sleepy.
@irfanakram
@irfanakram 6 жыл бұрын
I am learning vue.js with laravel, what i can do? I am jr PHP developer. please help me.
@gameplaywithbilal
@gameplaywithbilal 4 жыл бұрын
Thanks a lot sir you are doing great Love and Respect From Pakistan
@techkumar3829
@techkumar3829 6 жыл бұрын
What Happened with the advanced blog cms with laravel series??
@pedropeter2717
@pedropeter2717 4 жыл бұрын
thanks a lot
@yonann7899
@yonann7899 5 жыл бұрын
Hi, Do have any video that make silent print to printer?
@tokomeno9533
@tokomeno9533 6 жыл бұрын
thank you so much for great videos what you are doing for us
@onakoyakorede
@onakoyakorede 6 жыл бұрын
Thanks Alex for keeping to your word... really appreciate it?
@saeedakhshijan8159
@saeedakhshijan8159 6 жыл бұрын
thank you so so so much. you are more like teachers :D
@surajnirala9072
@surajnirala9072 6 жыл бұрын
can u make a video on laravel api docs generator
@playonmob7060
@playonmob7060 5 жыл бұрын
What you are doing with the event can be done also with observer ?
@JoseHernandez-ew2en
@JoseHernandez-ew2en 5 жыл бұрын
Thanks, great video!!
@brainenergy4663
@brainenergy4663 6 жыл бұрын
Could you help please, when I submit comment I got this error: 500(Internal Server Error)
@farisdewantoro5069
@farisdewantoro5069 6 жыл бұрын
me too
@roguez93
@roguez93 6 жыл бұрын
I have the same problem, Did you fixed ?
@brainenergy4663
@brainenergy4663 6 жыл бұрын
Not yet
@roguez93
@roguez93 6 жыл бұрын
I found the solutions, its necessary to return data in a Array... it can be "return ['something']" or "return ['json' => 'something']"
@sravankumarsriramula6841
@sravankumarsriramula6841 6 жыл бұрын
Attach the screenshot of your error.
@anwarhamoude2637
@anwarhamoude2637 5 жыл бұрын
Thanks for the tutorial.
@NovinyoAMEGADJE
@NovinyoAMEGADJE 6 жыл бұрын
You are AWESOME!!!!!! Yeah
@ojdgaf
@ojdgaf 6 жыл бұрын
so simple and painless, thanks!
@amardev2224
@amardev2224 6 жыл бұрын
hello master this is last video ?
@haseemxyt2375
@haseemxyt2375 6 жыл бұрын
Great tutorials 😊
@craigreeves5465
@craigreeves5465 5 жыл бұрын
I just got Echo is not defined...
@nicolasromero6144
@nicolasromero6144 5 жыл бұрын
THANKZ
@heewungsong8081
@heewungsong8081 6 жыл бұрын
Really helpful!!
@AhmedSaadGmail
@AhmedSaadGmail 6 жыл бұрын
Thanks Bro,
@mohamedkaddouri5318
@mohamedkaddouri5318 5 жыл бұрын
I don't know why?? when i open up a incognito window and log the user in and type a comment for a blog and i press save comment. the author of the comment get's to see it but the other doesn't. anybody any idea?
@ylberprapashtica2249
@ylberprapashtica2249 6 жыл бұрын
If i set 'encrypted' => false in broadcasting.php everything works fine, but if i set it to true, i get an 'error: 500(Internal Server Error)' any idea how to fix this?
@roguez93
@roguez93 6 жыл бұрын
I have the same problem, Did you fixed ?
@roguez93
@roguez93 6 жыл бұрын
I found the solution, its necessary to return data in a Array... it can be "return ['something']" or "return ['json' => 'something']"
@danielmquintero2691
@danielmquintero2691 5 жыл бұрын
@@roguez93 in broadcastWith() ?
@the2worlds
@the2worlds 5 жыл бұрын
Omg he repeats every the explanation 20 times. I have to keep skipping forward. Just explain it once and move on.
@mdatiqurrahman2561
@mdatiqurrahman2561 2 жыл бұрын
Hey, I really enjoyed this video a lot, learned so many stuff and make socket learning easier. 🤎
Websockets in Laravel - Part 4: Authenticating Private Channels
11:55
Websockets in Laravel - Part 1: Configuring Laravel for Websockets
30:47
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 2,9 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 63 М.
Websockets in Laravel: Part 0 - What are Websockets?
14:28
DevMarketer
Рет қаралды 37 М.
Why is Laravel NOT used in Big Development Projects?
11:53
Stefan Mischook
Рет қаралды 180 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 127 М.
Websockets in Laravel - Part 2: Setting up Comments API & AJAX
47:24
Negative Time is Real, Physicists Confirm. Kind Of.
6:59
Sabine Hossenfelder
Рет қаралды 53 М.
Getting Started with Laravel Reverb
10:44
Laravel
Рет қаралды 31 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17