PHPackages                             faraztanveer/laravel-chat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. faraztanveer/laravel-chat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

faraztanveer/laravel-chat
=========================

This is my package laravel-chat

v1.0.5(10mo ago)2161[4 PRs](https://github.com/faraztanveer/laravel-chat/pulls)MITPHPPHP ^8.2CI passing

Since Jun 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/faraztanveer/laravel-chat)[ Packagist](https://packagist.org/packages/faraztanveer/laravel-chat)[ Docs](https://github.com/faraztanveer/laravel-chat)[ GitHub Sponsors](https://github.com/faraztanveer)[ RSS](/packages/faraztanveer-laravel-chat/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (10)Used By (0)

💬 Laravel Chat
==============

[](#-laravel-chat)

[![Latest Version](https://camo.githubusercontent.com/d71ec36b883ab565bf093e927a0bd47785059dc03d2cc6268b03d794752b0ff9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/faraztanveer/laravel-chat)[![Downloads](https://camo.githubusercontent.com/68797c8f2a57980fa6729f4642d08bf51669bc780952f0ba4efac4ff6a36e23e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/faraztanveer/laravel-chat)[![Monthly Downloads](https://camo.githubusercontent.com/be48cf369e1f1b9f9832185a5936b3f0a1548b6f5f68160ffb54a6fe9ca3508c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/faraztanveer/laravel-chat)[![GitHub Stars](https://camo.githubusercontent.com/23c11b2099e036e82c7fa889a2eabe38a3f295cc6d9cfb8872d57c4bd60432f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465)](https://github.com/faraztanveer/laravel-chat)[![GitHub Forks](https://camo.githubusercontent.com/a1efcafcb8505f400a07fa3c4ae66cbcb24885c2c45fc648cb883544b3c88625/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465)](https://github.com/faraztanveer/laravel-chat)[![Code Style](https://camo.githubusercontent.com/8465b83e1d6e118cbd84e2c245ffceff744e8581b52b87243bab0ebfee7e6de1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666172617a74616e766565722f6c61726176656c2d636861742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://github.com/faraztanveer/laravel-chat/actions)[![PHP Version](https://camo.githubusercontent.com/c879cf127b860a670e17455899cae00b5a55654c61102eda2cac589a5736f777/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/faraztanveer/laravel-chat)[![Laravel Version](https://camo.githubusercontent.com/f37dcfee3d76c7a09ca7511c832730c219abdf05471d78b2120dd1d6510c59b9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31322b2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://laravel.com)[![License](https://camo.githubusercontent.com/f673eb621bed9ffb04e8af1fb9b17a19a90dddcec038f9aee49a6bdad8f682fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465)](https://github.com/faraztanveer/laravel-chat/blob/main/LICENSE)[![Last Commit](https://camo.githubusercontent.com/67bf39c7fae471ce0f802cfa2f07d85a5676694c9434c47d02e44a18c7873a61/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f666172617a74616e766565722f6c61726176656c2d636861743f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465)](https://github.com/faraztanveer/laravel-chat/commits)[![Made with Love](https://camo.githubusercontent.com/264340a842a4c6ea7be308027168ffa836d5f6f5c939dfa9abbe8622c27927bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230776974682d2545322539442541342545462542382538462d7265643f7374796c653d666f722d7468652d6261646765)](https://github.com/faraztanveer/laravel-chat)

**🚀 A blazingly fast, modern chat system for Laravel 12+**

*Built for real-time applications, infinite customization, and developer happiness*

[📦 Installation](#-installation) • [✨ Features](#-features) • [⚙️ Quick Start](#%EF%B8%8F-quick-start) • [📡 API Reference](#-api-reference) • [🤝 Contributing](#-contributing)

---

---

✨ Features
----------

[](#-features)

### 🎯 **Zero Configuration**

[](#-zero-configuration)

- Works out of the box with sensible defaults
- Auto-discovered database migrations
- No complex setup required

### ⚡ **Lightning Fast**

[](#-lightning-fast)

- Optimized database queries
- Minimal performance overhead
- Ready for real-time implementations

### 🔧 **Fully Customizable**

[](#-fully-customizable)

- Use your existing models and rules
- Extend functionality as needed
- Clean, simple architecture

### 🛡️ **Enterprise Ready**

[](#️-enterprise-ready)

- Middleware-friendly design
- Configurable API routes
- Production-tested and reliable

> 💡 **Perfect for**: Chat applications, messaging systems, customer support platforms, team collaboration tools, and any real-time communication needs.

---

🚀 Installation
--------------

[](#-installation)

```
# Install the package
composer require faraztanveer/laravel-chat

# Run migrations
php artisan migrate
```

📦 **Optional: Publish configuration file**```
php artisan vendor:publish --provider="Faraztanveer\LaravelChat\LaravelChatServiceProvider" --tag=config
```

---

⚙️ Quick Start
--------------

[](#️-quick-start)

### 1️⃣ Setup Your User Model

[](#1️⃣-setup-your-user-model)

Add the `HasChatChannels` trait to your user model:

```
