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 3w ago

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 47% 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

2245d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M45](/packages/kirschbaum-development-eloquent-power-joins)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M127](/packages/roots-acorn)

PHPackages © 2026

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