4
The version 5.3 of Laravel has some news, as the Broadcasting, for example.
I read the documentation, but I could not understand very well on the subject.
I saw that it has some relation (whether direct or indirect, I do not know) with the Websockets. I also saw that, in the folder routes
, there is a file called channels.php
, where there is an example code:
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
I wanted to know more deeply:
What is this Broadcasting in Laravel?
In what situations can I use it, for example?
What is the relationship between Laravel Broadcasting and Websockets?
The question is intended to have the content in the Portuguese language, due to not finding anything on the Internet in our language
By coincidence, I’m working on it today =) If I have a few minutes left, I’ll try to answer something.
– Jéf Bueno
It’ll be sensational @LINQ :)
– Wallace Maxters