Recently I had a need for rapid notifications of the user about the specific changes in the MySQL database. So I decided to use Socket.IO which I already used before in similar situations. The only problem was that I had to solve how to check if the connected Socket.IO client was authenticated in my Laravel 5 application and get its id to show specific data
I faced this problems while I was rewriting file section of my blog. At first, I meant to use files only for blog, but recently I decided to create portfolio section which will also use uploaded files so the easiest way to do this was to add type column and map with other tables by id.