Send information from one browser to another in Laravel 5.2.37

I have a page where the user can add / update entries. Code written in Laravel 5.2

Say I opened the Chrome Add / Update page with the same URL in FireFox. So, if the user creates a new entry in the Chrome browser, the information should be immediately sent to Firefox. This way, I don't need to send ajax based rejeust to the server to show the complete list.

My question is: where should I start for this? Is there any blog that I can go step by step?

+4
source share
5 answers

WebSockets. tiagoRL. , , Laravel 5.2, . Laracasts, .

:

https://laravel.com/docs/5.2/events#broadcasting-events

, , Pusher

+10

, AJAX.

  • , , .
  • , .
    • , -.

  • ( )
    • ,

, , , . JavaScript. AJAX- . AJAX , , , . .

+3
+2

:

Socket.io Broadcasting Laravel 5.1 Laravel Homestead

, .

The idea in your case is to send an event when a new record is saved or updated, and when others receive this event, update the list of records.

+2
source

All Articles