PHPackages                             chrisidakwo/laravel-messages - 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. [Database &amp; ORM](/categories/database)
4. /
5. chrisidakwo/laravel-messages

ActiveLibrary[Database &amp; ORM](/categories/database)

chrisidakwo/laravel-messages
============================

1.0.2(6y ago)11.7kMITPHPPHP ^7.1.3CI failing

Since May 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/chrisidakwo/laravel-messages)[ Packagist](https://packagist.org/packages/chrisidakwo/laravel-messages)[ RSS](/packages/chrisidakwo-laravel-messages/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (7)Versions (5)Used By (0)

Laravel Messages
================

[](#laravel-messages)

This package will allow you to add a full user messaging system into your Laravel application.

Features
--------

[](#features)

- Multiple conversations per user
- Optionally loop in additional users with each new message
- View the last message for each thread available
- Returns either all messages in the system, all messages associated to the user
- Return the users unread message count easily
- Very flexible usage so you can implement your own access control

Common uses
-----------

[](#common-uses)

- Open threads (everyone can see everything)
- Group messaging (only participants can see their threads)
- One to one messaging (private or direct thread)

Installation (Laravel 5.x)
--------------------------

[](#installation-laravel-5x)

```
composer require chrisidakwo/laravel-messages

```

Or place manually in composer.json:

```
"require": {
    "chrisidakwo/laravel-messages": "~1.0"
}
```

Run:

```
composer update
```

Add the service provider to `config/app.php` under `providers`:

```
'providers' => [
    ChrisIdakwo\Messages\MessagesServiceProvider::class,
],
```

> **Note**: If you are using Laravel 5.5, this step is unnecessary. Laravel Messages supports [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery).

Publish config:

```
php artisan vendor:publish --provider="ChrisIdakwo\Messages\MessagesServiceProvider" --tag="config"
```

Update config file to reference your User Model:

```
config/messages.php
```

Publish migrations:

```
php artisan vendor:publish --provider="ChrisIdakwo\Messages\MessagesServiceProvider" --tag="migrations"
```

Migrate your database:

```
php artisan migrate
```

Add the trait to your user model:

```
use ChrisIdakwo\Messages\Traits\HasMessages;

class User extends Authenticatable {
    use HasMessages;
}
```

Contributing?
-------------

[](#contributing)

Please format your code before creating a pull-request. This will format all files as specified in `.php_cs`:

```
vendor/bin/php-cs-fixer fix .
```

Security
--------

[](#security)

If you discover any security related issues, please email [Chris Idakwo](mailto:chris.idakwo@gmail.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chris Idakwo](https://github.com/chrisidakwo)

### Special Thanks

[](#special-thanks)

This package used [cmgmyr/laravel-messenger](https://github.com/cmgmyr/laravel-messenger) as a starting point.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f9d8495283ff2495d41150c337c2b0c4791af2de575a80e8e35f174565f6abd?d=identicon)[chrisidakwo](/maintainers/chrisidakwo)

---

Top Contributors

[![chrisidakwo](https://avatars.githubusercontent.com/u/29854560?v=4)](https://github.com/chrisidakwo "chrisidakwo (3 commits)")

---

Tags

chatconversationlaravelmessagesmessagingphproomusermessagelaraveleloquentusersendmessagingsystemchatMessenger

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chrisidakwo-laravel-messages/health.svg)

```
[![Health](https://phpackages.com/badges/chrisidakwo-laravel-messages/health.svg)](https://phpackages.com/packages/chrisidakwo-laravel-messages)
```

###  Alternatives

[cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel

4.0k13.6M253](/packages/cviebrock-eloquent-sluggable)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[cmgmyr/messenger

Simple user messaging tool for Laravel

2.6k2.4M6](/packages/cmgmyr-messenger)[cybercog/laravel-ban

Laravel Ban simplify blocking and banning Eloquent models.

1.1k651.8k11](/packages/cybercog-laravel-ban)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
