PHPackages                             jaocero/filachat - 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. jaocero/filachat

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

jaocero/filachat
================

FilaChat is a plugin for integrating real-time customer support chat into your application. Provides tools for both customer and agent chat interfaces, with features for managing and maintaining chat conversations.

v0.2.0-alpha.7(1y ago)1813.6k↓33.3%32[3 PRs](https://github.com/199ocero/filachat/pulls)MITPHPPHP ^8.1CI passing

Since Jul 11Pushed 1mo ago8 watchersCompare

[ Source](https://github.com/199ocero/filachat)[ Packagist](https://packagist.org/packages/jaocero/filachat)[ Docs](https://github.com/jaocero/filachat)[ GitHub Sponsors](https://github.com/jaocero)[ RSS](/packages/jaocero-filachat/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (14)Used By (0)

FilaChat
========

[](#filachat)

[![Header](https://raw.githubusercontent.com/199ocero/filachat/main/art/jaocero-filachat.jpg)](https://raw.githubusercontent.com/199ocero/filachat/main/art/jaocero-filachat.jpg)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0d320d391ae1c6a2181d4fd3f975389518a30c62dc31eb7776e4b459dffbfe52/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616f6365726f2f66696c61636861742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jaocero/filachat)[![GitHub Tests Action Status](https://camo.githubusercontent.com/42d7dc6ccbdf65d481c3e3fbc5e7e9eaa1218e17c1edd149943f61e360aa6f0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f3139396f6365726f2f66696c61636861742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/199ocero/filachat/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/089be33a0dfe90bd3a63ba5f360d02b233f9bdc91c68e3367e6bd1c925ebc5f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f3139396f6365726f2f66696c61636861742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/199ocero/filachat/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/59f138a7a6d302333698a5d88ae2b4bb4162b71e4b31665dc0a19b1ad81dd7e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616f6365726f2f66696c61636861742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jaocero/filachat)

Filachat is a plugin for adding real-time customer support chat to your application. It provides tools for both customer and agent chat interfaces, with features for managing and maintaining conversations. You can also disable role constraints to let users chat with each other without restrictions.

Important

This plugin has two roles: `agent` and `user`. When role restrictions are enabled, `agents` cannot chat with each other, and `users` cannot chat with each other. Only `agents` and `users` can chat with each other, and vice versa. If role restrictions are disabled, `agents` and `users` can freely chat with one another without any restrictions.

Caution

This plugin has not been tested in a production environment. Use it at your own risk.

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

[](#installation)

You can install the package via composer:

```
composer require jaocero/filachat
```

Run the following command to install FilaChat, which will take care of all migrations and configurations.

```
php artisan filachat:install
```

You can view the full content of the config file here: [config/filachat.php](https://github.com/199ocero/filachat/blob/main/config/filachat.php)

Next, execute the following command to generate assets in your public folder.

```
php artisan filament:assets
```

Note

This step is optional if you want to enable role restrictions. You only need to create an agent if you want to set up role-based chat support.

When you first install this plugin, you won’t have any `agents` set up yet. Agents are like admins who can provide chat support to your customers or users.

To create an `agent`, use the command below:

```
php artisan filachat:agent-create
```

Next, you need to apply the `HasFilaChat` trait to your models, whether it’s the `agent` model or the `user` model.

```
