In the previous chapters, we have created frontend projects or full stack projects that only communicate via HTTP. There is no real-time communication between the frontend and the backend. Real-time communication is sometimes necessary if we need to communicate data from the server side to the client side and vice versa instantly. Without some real-time communication mechanism, there is no way to communicate from the server side to the client side without the client initiating the request. This is something that we can add easily with the Laravel framework and Socket.io.
In this chapter, we will take a look at the following topics:
- Creating the API endpoints with Laravel
- Setting up JWT authentication
- Creating the frontend to let users chat
Laravel is a backend web framework that is written with PHP. It is a comprehensive backend framework that includes processing HTTP requests, database manipulation...