PHPackages                             sasin91/laravel-conversations - 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. sasin91/laravel-conversations

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

sasin91/laravel-conversations
=============================

Enables User conversations in a Laravel 5 app!

0145PHP

Since Jan 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/sasin91/laravel-conversations)[ Packagist](https://packagist.org/packages/sasin91/laravel-conversations)[ RSS](/packages/sasin91-laravel-conversations/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Conversations
=======================

[](#laravel-5-conversations)

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
    - [Swapping models](#overriding_models)
    - [Swapping invitation code](#swapping_invitation_code)
- [Usage](#usage)
- [Testing](#testing)
- [Events](#events)
- [Issues](#issues)
- [License](#license)

Installation
------------

[](#installation)

For Laravel ~5
--------------

[](#for-laravel-5)

```
composer require sasin91/laravel-conversations

```

As with any package, it's a good idea to refresh composer autoloader.

```
composer dump-autoload
```

Configuration
-------------

[](#configuration)

To publish `conversable.php` config file, run the following, `vendor:publish` command.

```
php artisan vendor:publish --provider="\Sasin91\LaravelConversations\ConversableServiceProvider"
```

You may configure the config file to your liking, however the defaults should work for most cases.

### Overriding models

[](#overriding-models)

You can override the default models permanently in the published config file. Temporarily by setting the config value at runtime.

```
    config()->set('conversable.models.user', User::class);
```

additionally, as a convenience there are also config objects available, taking models as example:

```
    \Sasin91\LaravelConversations\Config\Models::swap('user', User::class);
```

### Swapping the InvitationCode

[](#swapping-the-invitationcode)

You may rebind the concrete of the InvitationCode in your service provider.

```
    $this->app->singleton(\Sasin91\LaravelConversations\InvitationCode::class, Concrete::class);
```

as a convenience, the contract defines \_\_invoke method to be defined, which means it's possible to use a \\Closure for the implementation.

### Policy filters

[](#policy-filters)

You may register global within scope of this package policy callbacks in your service provider,

```
\Sasin91\LaravelConversations\Config\Policies::before(function ($user, $ability) {
    // return boolean
});

\Sasin91\LaravelConversations\Config\Policies::after(function ($user, $ability) {
    // return boolean
});
```

**And you are ready to go.**

Usage
-----

[](#usage)

This package provides the Eloquent portion plus some policies of a Conversations implementation.

Events
------

[](#events)

The common eloquent events are available as usual.

Additionally, when an invitation is accepted &amp; declined the following events are dispatched.

```
		'accepted' => 'Sasin91\LaravelConversations\Events\InvitationAccepted',
		'declined' => 'Sasin91\LaravelConversations\Events\InvitationDeclined'
```

Issues
------

[](#issues)

If you discover any vulnerabilities, please e-mail them to me at .

For issues, open a issue on Github.

I'm currently aware of issues with proxy-driver-commands and testing.

License
-------

[](#license)

laravel-conversations is free software distributed under the terms of the MIT license.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/25c4acb09666a19ad6cebce4bc539b940a53876769f89c384fd720921c6c1bf7?d=identicon)[Sasin91](/maintainers/Sasin91)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sasin91-laravel-conversations/health.svg)

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

###  Alternatives

[mydnic/laravel-subscribers

Easily Manage Internal Newsletter Subscribers in Laravel — with campaigns, mail sending, and tracking

264.8k](/packages/mydnic-laravel-subscribers)

PHPackages © 2026

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