New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

deskti/laravel-chat

Laravel chat package
182 2

Larablocks Analysis

deskti/laravel-chat works with Laravel 5 (latest release 1.0.5, Jun 12, 2017), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Jun 12, 2017)
  • 0 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 12, 2017.
  • No releases in the last 12 months.
  • First released: May 27, 2017.
  • 2 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require deskti/laravel-chat
Latest Version:1.0.5
Laravel:5
License:MIT
Last Updated:Jun 12, 2017
Links: GitHub  ·  Packagist
Maintainer: socramjunio2

Chat

This package allows you to add a chat system to your Laravel 5 application

Obs: Chat copiado do musonza/chat apenas para o uso pessoal da Deskti

Installation

From the command line, run:

composer require deskti/laravel-chat

Add the service provider to your config\app.php the providers array

Deskti\Chat\ChatServiceProvider

You can use the facade for shorter code. Add this to your aliases:

'Chat' => Deskti\Chat\Facades\ChatFacade::class to your `config\app.php`

The class is bound to the ioC as chat

$chat = App::make('chat');

Publish the assets:

php artisan vendor:publish

This will publish database migrations and a configuration file chat.php in the Laravel config folder.

Usage

By default the package assumes you have a User model in the App namespace. However, you can update the user model in 'chat.php' published in the config folder.

Creating a conversation
$conversation = Chat::createConversation([$userId, $userId2,...]); //takes an array of user ids
Get a conversation given a conversation_id
$conversation = Chat::conversation($conversation_id);
Send a message
Chat::send($conversation->id, 'Hello', $userId); //$userId sending a message to created conversation
Mark message as read
Chat::messageRead($messageId, $userId); //$userId marks the mesage as read
Mark whole conversation as read
Chat::conversationRead($conversation->id, $userId);
Delete a message
Chat::trash($messageId, $userId);
Clear a conversation
Chat::clear($conversation->id, $userId);
Get conversation for two users
Chat::getConversationBetweenUsers($userId, $userId2);
Remove user(s) from conversation
Chat::removeParticipants($conversation->id, $usersId); //removing one user
Chat::removeParticipants($conversation->id, [$usersId, $userId2]); //removing multiple users
Add user(s) to a conversation
Chat::addParticipants($conversation->id, $userId3); //add one user
Chat::addParticipants($conversation->id, [$userId3, $userId4]); //add multiple users
Get messages in a conversation
Chat::messages($userId, $conversation->id, $perPage, $page);
Get recent messages
$mesages = Chat::conversations($userId);
Get users in a conversation
$users = $conversation->users;

Alternatives to deskti/laravel-chat

musonza/chat

Chat Package for Laravel

332,896 1,238
syntaxlexx/chatmessenger

Simple one-to-one/group chat messaging tool for Laravel 5, 6, 7, 8, 9 & 10 with...

14,501 105
lexxyungcarter/chatmessenger

Simple one-to-one/group chat messaging tool for Laravel 5, 6, 7, 8, 9 & 10 with...

28,272 105
heyosseus/filum

Broadcasting-agnostic real-time chat between admin users, inside a Filament pane...

2,391 8

Version History

Version Released Laravel License
1.0.5 ^5.2 MIT
1.0.4 ^5.2 MIT
1.0.3 ^5.2 MIT
1.0.2 ^5.2 MIT
1.0.1 ^5.2 MIT