Download the PHP package laraditz/realm-chat without Composer
On this page you can find all versions of the php package laraditz/realm-chat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laraditz/realm-chat
More information about laraditz/realm-chat
Files in laraditz/realm-chat
Package realm-chat
Short Description Laravel wrapper for Realm Chat SDK
License MIT
Homepage https://github.com/laraditz/realm-chat
Informations about the package realm-chat
Laravel Realm Chat
Laravel wrapper for Realm Chat SDK. Includes event for receiving messages.
Installation
You can install the package via composer:
Before Start
Configure your variables in your .env
(recommended) or you can publish the config file and change it there.
(Optional) You can publish the config file via this command:
Run the migration command to create the necessary database table.
Add routeNotificationForRealmChat
method to your Notifiable model.
Usage
Now you can use the channel in your via()
method inside the notification:
Event
This package also provide an event to allow your application to listen for Realm Chat message receive. You can create your listener and register it under event below.
Event | Description |
---|---|
Laraditz\RealmChat\Events\MessageReceived | When a message comes in. |
Webhook URL
You may setup the URLs below on Realm Chat dashboard so that Realm Chat will push new messages to it and it will then trigger the MessageReceived
event above.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Raditz Farhan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.