Invite Only Chat with Laravel and Vue
Blog post from Stream
The tutorial provides a comprehensive guide on creating an invite-only group chat application using Laravel, Vue.js, and Stream Chat. It outlines the process of setting up a Laravel application with authentication, modifying the user model to include admin roles, and using Stream Chat API keys to build a chat application quickly. The tutorial details how to create an Invite model and controller for managing user invitations, and how to set up routes and views for inviting users and processing these invites. It explains the creation of a chat room channel using the Stream Chat PHP SDK, and how to add functionality for sending invitations, registering users, and adding them to the chat room. The tutorial also covers generating authentication tokens for Stream Chat, adding chat functionality with the Stream Chat JavaScript SDK, and ensuring that only admin users can send invitations by implementing middleware for route protection. The guide concludes by encouraging further exploration of Stream Chat's features through its documentation.