services usage, such as how many times the QR code is scanned ,
The number of times should be stored in a table , each time the QR code is scanned the table will be updated
and display on admin control panel without reloading/refreshing it at real-time, in PHP specifically I am using laravel as backend , are there any possible solution I can pass the value from the server side to admin panel at real time so that the administrator can see the most updated value?
I don't want to keep making an Ajax call for every 5 seconds in order to update the usage value
https://laravel.com/docs/5.7/broadcasting This should be a solution.
Обсуждают сегодня