ronasit / laravel-chat
This package implements chat functionality based on push notifications.
0.0.4-beta
2025-02-13 13:06 UTC
Requires
- php: ^8.3
- laravel/framework: ^11.30
- ronasit/laravel-helpers: ^3.2
- ronasit/laravel-media: ^0.1
- dev-master
- 0.0.4-beta
- 0.0.3-beta
- 0.0.2-beta
- 0.0.1.2-beta
- 0.0.1.1-beta
- 0.0.1-beta
- dev-35-configure-autotest-running-with-coverage-saving
- dev-31_add_gitattributes_file
- dev-20-cover-package-by-autotests-part-2
- dev-20-cover-package-by-autotests
- dev-0-0-1-beta
- dev-32_update_helpers_version
- dev-25_change-route-helper-logic
- dev-update-dependencies
- dev-23-update-readme-file
- dev-+24-update-configs-code-style
- dev-15-compability-with-laravel-media-package
- dev-rguskov/fix-installation
- dev-paratests
- dev-9-remove-expo-merge
This package is auto-updated.
Last update: 2025-03-03 13:05:03 UTC
README
Introduction
This plugin adds the ability for users to work with chat functionalities in a Laravel application.
Installation
- Install the package using the following command:
composer require ronasit/laravel-chat
- Publish the package configuration:
php artisan vendor:publish --provider=RonasIT\\Chat\\ChatServiceProvider
- For Laravel <= 5.5 add
ronasit\Chat\ChatServiceProvider::class
to theapp.providers
list in config. - Set your project's User model to the
chat.classes.user_model
config. - All routes are registered by default, you can change the route registration by calling
Route::chat()
in your routes file (e.g.routes/api.php
).- feel free to call
Route::chat()
helper inside any route wrappers likegroup
,prefix
, etc. to wrap package routes; - calling
Route::chat()
without args will add all package route inside the calling helper place; - calling
Route::chat()
with any args will add only routes with chosen actions;
- feel free to call
Integration with LaravelSwagger
This package includes an OpenAPI documentation file. To include it in your project's documentation, you need to register it in the auto-doc.additional_paths
config:
vendor/ronasit/laravel-chat/documentation.json
Contributing
Thank you for considering contributing to the Laravel Chat plugin! The contribution guide can be found in the Contributing guide.
License
Laravel Chat plugin is open-sourced software licensed under the MIT license.