Do you want to build a real-time chat application in Laravel without writing everything from scratch? Good news – you can set it up in just 10 minutes using a free package (Chatify) and some simple steps. In this guide, I’ll show you how to create a Laravel chat app with free source code, that supports real-time messaging with Pusher.
This tutorial is perfect for students, beginners, and developers who want to quickly add chat features to their Laravel projects.
First, install a fresh Laravel project:
composer create-project laravel/laravel chat-app
cd chat-app
Laravel UI helps us with authentication and frontend scaffolding. Run:
composer require laravel/ui
php artisan ui bootstrap --auth
npm install && npm run build
This will set up authentication (login/register system) which is required for Chatify.
Now install the free Chatify package:
composer require munafio/chatify
php artisan chatify:install
php artisan migrate
Chatify automatically creates the chat system with messages, contacts, and UI.
Chatify uses Pusher for real-time communication.
Go to Pusher and create a free account.
Create a new channel app.
Copy your credentials and paste them inside your .env
file:
PUSHER_APP_ID=****
PUSHER_APP_KEY=**********
PUSHER_APP_SECRET=**********
PUSHER_APP_CLUSTER=***
Run the Laravel development server:
php artisan serve
Your app will run on:
👉 http://localhost:8000
Create a new user account by registering.
After login, open the chat application:
👉 http://localhost:8000/chatify
To test real-time chat:
Open the chat in another browser (or incognito mode).
Login with another account.
Start sending messages – you will see real-time chat working perfectly 🎉
You don’t need to build everything from scratch. Chatify already gives you a free source code with complete chat features:
Real-time messaging
Seen/unseen messages
Attachments
User list with status
Notifications
👉 Download Free Source Code here: Chatify on GitHub
That’s it! You just created a real-time Laravel Chat Application in 10 minutes using the Chatify package and Pusher.
This setup is free, open-source, and beginner-friendly. You can easily customize it for your own project – like customer support chat, social networking, or team communication.
So what are you waiting for? Install it today and give your Laravel project the power of real-time chat 🚀
If you want a chat application or need installation / website development services, feel free to contact us on WhatsApp 👉 https://wa.me/918447525204